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

Unified Diff: tests/language/compile_time_constant12_test.dart

Issue 589043003: Backout constant support (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 6 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_constant12_test.dart
diff --git a/tests/language/compile_time_constant12_test.dart b/tests/language/compile_time_constant12_test.dart
index cbe1a817c2ed2d7e91be447f410f298f2827dd37..0ae5f5772f6d725fb5272e1a193b8a8a9a2cf75a 100644
--- a/tests/language/compile_time_constant12_test.dart
+++ b/tests/language/compile_time_constant12_test.dart
@@ -3,10 +3,11 @@
// BSD-style license that can be found in the LICENSE file.
const String s = "foo";
-const int i = s.length;
+const int i = s.length; /// 01: compile-time error
use(x) => x;
main() {
- use(i);
+ use(s);
+ use(i); /// 01: continued
}

Powered by Google App Engine
This is Rietveld 408576698