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

Unified Diff: tests/corelib/src/ConstListLiteralTest.dart

Issue 8914024: frog: better binding of methods. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: '' Created 9 years 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/corelib/src/ConstListLiteralTest.dart
diff --git a/tests/corelib/src/ConstListLiteralTest.dart b/tests/corelib/src/ConstListLiteralTest.dart
index c7ba4419f27bf22ef3d3e0cf9100387bb8a902ea..27891e95bc08801c1b63887afbab75c032f4eba0 100644
--- a/tests/corelib/src/ConstListLiteralTest.dart
+++ b/tests/corelib/src/ConstListLiteralTest.dart
@@ -61,6 +61,10 @@ class ConstListLiteralTest {
Expect.equals(4, list[0]);
Expect.equals(2, list[1]);
Expect.equals(3, list[2]);
+
+ int x = 0;
+ list.forEach((e) { x += e; });
+ Expect.equals(9, x);
}
}

Powered by Google App Engine
This is Rietveld 408576698