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

Unified Diff: tests/language/top_level_var_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/top_level_in_initializer_test.dart ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: tests/language/top_level_var_test.dart
diff --git a/tests/language/top_level_var_test.dart b/tests/language/top_level_var_test.dart
index f22aca3cd5d61133f7de3ca248e7e7a264709810..9bd029a49867c75ad5f05430ed58221c9376ee54 100644
--- a/tests/language/top_level_var_test.dart
+++ b/tests/language/top_level_var_test.dart
@@ -22,8 +22,8 @@ class TopLevelVarTest {
}
-// Ensure that initializers work for both final and non-final variables.
-final int x = 2 * 55 + 1;
+// Ensure that initializers work for both const and non-const variables.
+const int x = 2 * 55 + 1;
int y = x + 1;
« no previous file with comments | « tests/language/top_level_in_initializer_test.dart ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698