| Index: testcases/input/named_parameters.dart
|
| diff --git a/testcases/input/named_parameters.dart b/testcases/input/named_parameters.dart
|
| new file mode 100644
|
| index 0000000000000000000000000000000000000000..4425f6da9a381f9a439a6e1c42724d79d9d40601
|
| --- /dev/null
|
| +++ b/testcases/input/named_parameters.dart
|
| @@ -0,0 +1,26 @@
|
| +// Copyright (c) 2016, the Dart project authors. Please see the AUTHORS file
|
| +// for details. All rights reserved. Use of this source code is governed by a
|
| +// BSD-style license that can be found in the LICENSE file.
|
| +class Superclass {
|
| + foo({alpha, beta}) {}
|
| + bar({beta, alpha}) {}
|
| +
|
| + namedCallback(callback({alpha, beta})) {}
|
| +}
|
| +
|
| +class Subclass extends Superclass {
|
| + foo({beta, alpha}) {}
|
| + bar({alpha, beta}) {}
|
| +
|
| + namedCallback(callback({beta, alpha})) {}
|
| +}
|
| +
|
| +topLevelNamed(beta, alpha, {gamma, delta}) {}
|
| +topLevelOptional(beta, alpha, [gamma, delta]) {}
|
| +
|
| +main() {
|
| + new Subclass().foo(beta: 1, alpha: 2);
|
| + new Subclass().foo(alpha: 1, beta: 2);
|
| + topLevelNamed(1, 2, gamma: 3, delta: 4);
|
| + topLevelNamed(1, 2, delta: 3, gamma: 4);
|
| +}
|
|
|