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

Unified Diff: tests/language/src/StringInterpolate7NegativeTest.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: tests/language/src/StringInterpolate7NegativeTest.dart
diff --git a/compiler/javatests/com/google/dart/compiler/end2end/inc/myother1.dart b/tests/language/src/StringInterpolate7NegativeTest.dart
similarity index 53%
copy from compiler/javatests/com/google/dart/compiler/end2end/inc/myother1.dart
copy to tests/language/src/StringInterpolate7NegativeTest.dart
index 98c9f1b688f54508181508660d8181d55f19e8dd..dada949f16e2adb9240cfe563a2cf164f9c072b1 100644
--- a/compiler/javatests/com/google/dart/compiler/end2end/inc/myother1.dart
+++ b/tests/language/src/StringInterpolate7NegativeTest.dart
@@ -1,11 +1,12 @@
// Copyright (c) 2011, the Dart project authors. Please see the AUTHORS file
// for details. All rights reserved. Use of this source code is governed by a
// BSD-style license that can be found in the LICENSE file.
+// Dart test program testing string interpolation.
-class Other1 {
- // The existence of this final triggers b/5078969.
- static final Function FN = () { return 42; };
+class A {
+ static final String A = "World";
+ static final String msg = "Hello $A"; // not allowed in compile time constant
floitsch 2011/10/14 22:46:15 80 chars.
zundel 2011/10/17 02:56:02 Done.
+}
- Other1() { }
- void newMethod() { }
+main () {
}

Powered by Google App Engine
This is Rietveld 408576698