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

Unified Diff: compiler/javatests/com/google/dart/compiler/end2end/inc/myother0.dart

Issue 8231031: Check for compile-time constants in DartCompiler (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Renamed CompileTimeConstTest to CTConst2Test Created 9 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
Index: compiler/javatests/com/google/dart/compiler/end2end/inc/myother0.dart
diff --git a/compiler/javatests/com/google/dart/compiler/end2end/inc/myother0.dart b/compiler/javatests/com/google/dart/compiler/end2end/inc/myother0.dart
index d2192a15f43777d782f18ed4adb38a99f3fe721b..22de779835882f650cc032c5af2988364774740a 100644
--- a/compiler/javatests/com/google/dart/compiler/end2end/inc/myother0.dart
+++ b/compiler/javatests/com/google/dart/compiler/end2end/inc/myother0.dart
@@ -11,7 +11,7 @@ class Other0 {
int get field() { return field_; }
}
-int globalVar = 42;
+final int globalVar = 42;
ngeoffray 2011/10/14 09:26:56 ditto.
zundel 2011/10/14 10:04:21 I was under the impression you cannot initialize a
ngeoffray 2011/10/14 10:33:42 You can initialize non-static fields (including to
int globalFunction() {
return 42;

Powered by Google App Engine
This is Rietveld 408576698