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

Unified Diff: tests/language/compile_time_constant_test.dart

Issue 25873005: Compile error on const instance variables (Closed) Base URL: http://dart.googlecode.com/svn/branches/bleeding_edge/dart/
Patch Set: Created 7 years, 2 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 | « runtime/vm/parser.cc ('k') | tests/language/const_escape_frog_test.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: tests/language/compile_time_constant_test.dart
===================================================================
--- tests/language/compile_time_constant_test.dart (revision 28233)
+++ tests/language/compile_time_constant_test.dart (working copy)
@@ -4,7 +4,7 @@
class Bad {
int foo;
- const int bar =
+ final int bar =
foo /// 01: compile-time error
-1;
static const int toto =
« no previous file with comments | « runtime/vm/parser.cc ('k') | tests/language/const_escape_frog_test.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698