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

Unified Diff: tests/language/lazy_final2_test.dart

Issue 10855174: Lazy implementation of final variables. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Address comments and move some code from compiler to backend. Created 8 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/lazy_final2_test.dart
diff --git a/tests/language/string_escape1_negative_test.dart b/tests/language/lazy_final2_test.dart
similarity index 73%
copy from tests/language/string_escape1_negative_test.dart
copy to tests/language/lazy_final2_test.dart
index b9816b1206e18d93470679b9f75c531bc0bebca0..e422c300982a989713334fbc162ab3df2d2739a7 100644
--- a/tests/language/string_escape1_negative_test.dart
+++ b/tests/language/lazy_final2_test.dart
@@ -2,10 +2,9 @@
// 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.
-// Test that newlines cannot be escaped in library tags.
-
-#library('foo\
-');
+final x = (t) => t + 1;
main() {
-}
+ Expect.equals(499, x(498));
+ Expect.equals(42, x(41));
+}

Powered by Google App Engine
This is Rietveld 408576698