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

Unified Diff: tests/language/block_scope_test.dart

Issue 12381089: Fix for loop variable capturing (Closed) Base URL: http://dart.googlecode.com/svn/branches/bleeding_edge/dart/
Patch Set: Created 7 years, 10 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
« no previous file with comments | « runtime/vm/parser.cc ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: tests/language/block_scope_test.dart
===================================================================
--- tests/language/block_scope_test.dart (revision 19419)
+++ tests/language/block_scope_test.dart (working copy)
@@ -29,11 +29,11 @@
void testShadowingCapture2() {
var f = null;
- // this one uses a reentrent block
+ // this one uses a reentrant block
for (int i = 0; i < 2; i++) {
var foo = i + 888;
if (f == null) f = () => foo;
- } while(false);
+ }
var foo = -888;
// this could break if it doesn't bind the right "foo"
« no previous file with comments | « runtime/vm/parser.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698