Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(2)

Unified Diff: tests/language_2/compile_time_constant_static2_test.dart

Issue 2994383002: Migrating block 50, first commit, after tool has run (Closed)
Patch Set: Updated status files based on feedback from whesse Created 3 years, 4 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
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

Powered by Google App Engine
This is Rietveld 408576698