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

Unified Diff: tests/language/src/StringInterpolateTest.dart

Issue 8231031: Check for compile-time constants in DartCompiler (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Feedback from floitsch 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: tests/language/src/StringInterpolateTest.dart
diff --git a/tests/language/src/StringInterpolateTest.dart b/tests/language/src/StringInterpolateTest.dart
index 3bb8d361f0aaa861c5d0cdc8616278c06ad229cb..da1fab3f789177333b9c7c9dda821dead4816c2d 100644
--- a/tests/language/src/StringInterpolateTest.dart
+++ b/tests/language/src/StringInterpolateTest.dart
@@ -22,10 +22,13 @@ class StringInterpolateTest {
static final String A = "svin";
static final String B = "hest";
static final int N = 1 + 1;
- static final String Printers = "Printers: $A and $B";
- static final String AAR_Printers = "AAR has $N $Printers.";
+ static String Printers;
+ static String AAR_Printers;
static testMain() {
+ Printers = "Printers: $A and $B";
+ AAR_Printers = "AAR has $N $Printers.";
+
var x = 1;
var s = "eins und \$x macht zwei.";
print(s);

Powered by Google App Engine
This is Rietveld 408576698