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

Unified Diff: tests/language/const_init_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/const_init_test.dart
diff --git a/tests/language/const_init_test.dart b/tests/language/const_init_test.dart
index 989fa28a2ca64b36fa23d215f3830e356484e98b..89787a71ab96a590fec78b0715d61f00948cc758 100644
--- a/tests/language/const_init_test.dart
+++ b/tests/language/const_init_test.dart
@@ -10,15 +10,15 @@ class Point {
}
class ConstInitTest {
- static final N = 1;
- static final O = 1 + 3;
- static final P = 2 * (O - N);
- static final Q = const Point(0, 0);
+ static const N = 1;
+ static const O = 1 + 3;
+ static const P = 2 * (O - N);
+ static const Q = const Point(0, 0);
- static final Q2 = const Point(0, 0);
- static final P2 = 2 * (O - N);
- static final O2 = 1 + 3;
- static final N2 = 1;
+ static const Q2 = const Point(0, 0);
+ static const P2 = 2 * (O - N);
+ static const O2 = 1 + 3;
+ static const N2 = 1;
static testMain() {
Expect.equals(1, N);

Powered by Google App Engine
This is Rietveld 408576698