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

Unified Diff: tests/language/compile_time_constant_test.dart

Issue 10855174: Lazy implementation of final variables. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Address comments and move some code from compiler to backend. 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
Index: tests/language/compile_time_constant_test.dart
diff --git a/tests/language/compile_time_constant_test.dart b/tests/language/compile_time_constant_test.dart
index f354e10c8bc0c57a58bf72695563132ad92e0ae9..ca433394c4ad3d75b7d67b4441a5cfee55596d64 100644
--- a/tests/language/compile_time_constant_test.dart
+++ b/tests/language/compile_time_constant_test.dart
@@ -7,9 +7,9 @@ class Bad {
static int bar
= foo /// 01: compile-time error
;
- static int toto
- = bar /// 02: compile-time error
- ;
+ static const int toto =
+ bar /// 02: compile-time error
+ -3;
}
void use(x) {}

Powered by Google App Engine
This is Rietveld 408576698