Index: tests/language_2/compile_time_constant_static2_test.dart |
diff --git a/tests/language/compile_time_constant_checked3_test.dart b/tests/language_2/compile_time_constant_static2_test.dart |
similarity index 57% |
rename from tests/language/compile_time_constant_checked3_test.dart |
rename to tests/language_2/compile_time_constant_static2_test.dart |
index 8b9e04c8c376b666c6b4a9fc93c47896c734d6cd..3d2ebfe7e086b459cb6c94973ae592216692aef2 100644 |
--- a/tests/language/compile_time_constant_checked3_test.dart |
+++ b/tests/language_2/compile_time_constant_static2_test.dart |
@@ -12,12 +12,12 @@ class A { |
const A.a6(int x) : this.x = x; |
} |
-var a1 = const A.a1(); //# 01: static type warning, checked mode compile-time error |
-var a2 = const A.a2('foo'); //# 02: static type warning, checked mode compile-time error |
-var a3 = const A.a3(); //# 03: static type warning, checked mode compile-time error |
-var a4 = const A.a4('foo'); //# 04: static type warning, checked mode compile-time error |
-var a5 = const A.a5('foo'); //# 05: static type warning, checked mode compile-time error |
-var a6 = const A.a6('foo'); //# 06: static type warning, checked mode compile-time error |
+const a1 = const A.a1(); //# 01: compile-time error |
+const a2 = const A.a2('foo'); //# 02: compile-time error |
+const a3 = const A.a3(); //# 03: compile-time error |
+const a4 = const A.a4('foo'); //# 04: compile-time error |
+const a5 = const A.a5('foo'); //# 05: compile-time error |
+const a6 = const A.a6('foo'); //# 06: compile-time error |
Bob Nystrom
2017/08/23 21:56:54
Maybe I'm missing something obvious, but why are t
mkroghj
2017/08/24 07:55:15
This is because the named constructor tries to set
Bob Nystrom
2017/08/24 16:18:25
Oh, duh. Thanks. :)
|
main() { |
print(a1); //# 01: continued |