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

Unified Diff: tests/language/default_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: Updated cf. comments 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
« no previous file with comments | « tests/language/ct_const_test.dart ('k') | tests/language/index_test.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: tests/language/default_init_test.dart
diff --git a/tests/language/default_init_test.dart b/tests/language/default_init_test.dart
index 5113277865fad05c81fa42f754c89e51229559e4..41925853a7cb0521d1e6b6a58ccdca5e5a73754b 100644
--- a/tests/language/default_init_test.dart
+++ b/tests/language/default_init_test.dart
@@ -23,8 +23,8 @@ class DefaultInitTest {
}
class A {
- static final int a = 0;
- static final int b = 2;
+ static const int a = 0;
+ static const int b = 2;
static int c;
int d;
int e;
@@ -41,7 +41,7 @@ class A {
// The following tests cover cases described in b/4101270
class B {
- static final B instance = const B();
+ static const B instance = const B();
// by putting this field after the static initializer above, the JS code gen
// was calling the constructor before the setter of this property was defined.
final int x;
@@ -50,7 +50,7 @@ class B {
class C {
// forward reference to another class
- static final D instance = const D();
+ static const D instance = const D();
C() {}
}
« no previous file with comments | « tests/language/ct_const_test.dart ('k') | tests/language/index_test.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698