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

Unified Diff: tests/language/const_syntax_test.dart

Issue 10918046: Change remaining "final" to "const" in language/const_syntax_test. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 8 years, 3 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 | « lib/compiler/implementation/enqueue.dart ('k') | tests/language/language_dart2js.status » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: tests/language/const_syntax_test.dart
diff --git a/tests/language/const_syntax_test.dart b/tests/language/const_syntax_test.dart
index 5853aead776b92d22d62c9264573b4af13c86243..7540709735aafdcec99ff02f1e295c133315f884 100644
--- a/tests/language/const_syntax_test.dart
+++ b/tests/language/const_syntax_test.dart
@@ -3,10 +3,10 @@
// BSD-style license that can be found in the LICENSE file.
main() {
- final f0 = 42;
- final f1; /// 01: compile-time error
- final int f2 = 87;
- final int f3; /// 02: compile-time error
+ const f0 = 42;
+ const f1; /// 01: compile-time error
+ const int f2 = 87;
+ const int f3; /// 02: compile-time error
Expect.equals(42, f0);
Expect.equals(87, f2);
« no previous file with comments | « lib/compiler/implementation/enqueue.dart ('k') | tests/language/language_dart2js.status » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698