| Index: tests/language/src/NamedArgumentInConstCreationTest.dart
|
| diff --git a/tests/language/src/NamedArgumentInConstCreationTest.dart b/tests/language/src/NamedArgumentInConstCreationTest.dart
|
| new file mode 100644
|
| index 0000000000000000000000000000000000000000..cd53423365e6ffe8adab3ce70c36fd11724f17d3
|
| --- /dev/null
|
| +++ b/tests/language/src/NamedArgumentInConstCreationTest.dart
|
| @@ -0,0 +1,16 @@
|
| +// Copyright (c) 2012, 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 A {
|
| + final x;
|
| + final y;
|
| + const A(a, [b]) : x = a, y = b;
|
| + static final test = const A(1, b: 2);
|
| +}
|
| +
|
| +main() {
|
| + A a = A.test;
|
| + Expect.equals(1, a.x);
|
| + Expect.equals(2, a.y);
|
| +}
|
|
|