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

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: rebase wrt CL 10832351. Created 8 years, 4 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/compiler/dart2js_extra/panda_lib.dart b/tests/language/lazy_final2_test.dart
similarity index 77%
copy from tests/compiler/dart2js_extra/panda_lib.dart
copy to tests/language/lazy_final2_test.dart
index 24bdd8843fe55bea9ad2062d502d1e29e6754020..fd476b8ada251f702e11fb0d99b40a22137e8758 100644
--- a/tests/compiler/dart2js_extra/panda_lib.dart
+++ b/tests/language/lazy_final2_test.dart
@@ -2,9 +2,8 @@
// 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.
-#library("panda_lib");
+final x = (t) => t + 1;
-class Panda {
- Panda() {
- }
-}
+main() {
+ Expect.equals(499, x(498));
+}

Powered by Google App Engine
This is Rietveld 408576698