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

Unified Diff: pkg/kernel/testcases/closures/uncaptured_for_in_loop.dart.expect

Issue 2998803002: [kernel] Support for top-level generic functions. (Closed)
Patch Set: Review comments. Created 3 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: pkg/kernel/testcases/closures/uncaptured_for_in_loop.dart.expect
diff --git a/pkg/kernel/testcases/closures/uncaptured_for_in_loop.dart.expect b/pkg/kernel/testcases/closures/uncaptured_for_in_loop.dart.expect
index 1f652f3e86e795079b62e0443734a19fb9578a28..3a044c89aa3f49ce2d9cc6664b6417f762d26071 100644
--- a/pkg/kernel/testcases/closures/uncaptured_for_in_loop.dart.expect
+++ b/pkg/kernel/testcases/closures/uncaptured_for_in_loop.dart.expect
@@ -6,8 +6,8 @@ static const field dynamic numbers = const <core::int>[0, 1, 2, 3, 4, 5, 6, 7, 8
static method main() → dynamic {
dynamic closures = <dynamic>[];
for (core::int i in self::numbers) {
- final Vector #context = MakeVector(2);
- #context[1] = i;
+ final Vector #context = MakeVector(3);
+ #context[2] = i;
closures.add(MakeClosure<() → dynamic>(self::closure#main#function, #context));
}
core::int sum = 0;
@@ -20,5 +20,5 @@ static method main() → dynamic {
}
}
static method closure#main#function(Vector #contextParameter) → dynamic {
- return #contextParameter[1];
+ return #contextParameter[2];
}

Powered by Google App Engine
This is Rietveld 408576698