| Index: tests/language/const_local_test.dart
|
| diff --git a/tests/compiler/dart2js_extra/member_namespace_test.dart b/tests/language/const_local_test.dart
|
| similarity index 63%
|
| copy from tests/compiler/dart2js_extra/member_namespace_test.dart
|
| copy to tests/language/const_local_test.dart
|
| index ff65d20654530e198d30621434db8f6da69d48e6..bc5b71bddc8c034deb140b38765f1672e359c6f0 100644
|
| --- a/tests/compiler/dart2js_extra/member_namespace_test.dart
|
| +++ b/tests/language/const_local_test.dart
|
| @@ -4,16 +4,14 @@
|
|
|
| import "package:expect/expect.dart";
|
|
|
| -class A {
|
| - static int a;
|
| - A();
|
| - static foo() {
|
| - // Make sure 'A' is not resolved to the constructor.
|
| - return A.a;
|
| - }
|
| +main() {
|
| + const a = 1;
|
| + Expect.equals(1, a);
|
| + Expect.equals(1, const A(a).a);
|
| + Expect.equals(1, const [const A(a)][0].a);
|
| }
|
|
|
| -main() {
|
| - A.a = 42;
|
| - Expect.equals(42, A.foo());
|
| +class A {
|
| + final a;
|
| + const A(this.a);
|
| }
|
|
|