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

Unified Diff: tests/language/compile_time_constant12_test.dart

Issue 585173002: dart2js: Support new const operations on strings. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Rebase and status file updates. Created 5 years, 11 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 0ae5f5772f6d725fb5272e1a193b8a8a9a2cf75a..60a253387f32c8d925f4d2d8d07ec53948c59291 100644
--- a/tests/language/compile_time_constant12_test.dart
+++ b/tests/language/compile_time_constant12_test.dart
@@ -3,11 +3,11 @@
// BSD-style license that can be found in the LICENSE file.
const String s = "foo";
-const int i = s.length; /// 01: compile-time error
+const int i = s.length;
use(x) => x;
main() {
use(s);
- use(i); /// 01: continued
+ use(i);
}
« no previous file with comments | « pkg/compiler/lib/src/js_backend/constant_system_javascript.dart ('k') | tests/language/compile_time_constant_c_test.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698