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

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

Issue 8318031: Interpolated strings are never considered compile time const (Closed) Base URL: http://dart.googlecode.com/svn/branches/bleeding_edge/dart/
Patch Set: '' 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
« no previous file with comments | « tests/language/src/MapLiteral2Test.dart ('k') | tests/language/src/StringInterpolationTest.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: tests/language/src/StringInterpolation7NegativeTest.dart
===================================================================
--- tests/language/src/StringInterpolation7NegativeTest.dart (revision 491)
+++ tests/language/src/StringInterpolation7NegativeTest.dart (working copy)
@@ -6,8 +6,9 @@
class A {
static final x = 1;
- static final y = "Two is greater than ${x}"; // ERROR: String interpolation
+ static final y = "Two is greater than ${x}"; // ERROR: String interpolation
}
main() {
-}
+ var a = A.y;
+}
« no previous file with comments | « tests/language/src/MapLiteral2Test.dart ('k') | tests/language/src/StringInterpolationTest.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698