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

Unified Diff: tests/language/compile_time_constant_f_test.dart

Issue 10837359: Language tests updated to use const instead of final. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Instance fields are never const. Created 8 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/compile_time_constant_f_test.dart
diff --git a/tests/language/compile_time_constant_f_test.dart b/tests/language/compile_time_constant_f_test.dart
index 21b198112815fab35c9e3df339463672b218f7ad..768417855d5b919199e76dbf741d6e65093a7c67 100644
--- a/tests/language/compile_time_constant_f_test.dart
+++ b/tests/language/compile_time_constant_f_test.dart
@@ -9,11 +9,11 @@ class A {
const A.named2([this.x = 2]);
}
-final a1 = const A(0);
-final a2 = const A.named();
-final a3 = const A.named(1);
-final a4 = const A.named2();
-final a5 = const A.named2(3);
+const a1 = const A(0);
+const a2 = const A.named();
+const a3 = const A.named(1);
+const a4 = const A.named2();
+const a5 = const A.named2(3);
main() {
Expect.equals(0, a1.x);

Powered by Google App Engine
This is Rietveld 408576698