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

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

Issue 3000333002: Fix several bugs in closure conversion. (Closed)
Patch Set: 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
« no previous file with comments | « pkg/kernel/testcases/closures/for_in_closure.dart ('k') | pkg/kernel/testcases/closures/loop2.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: pkg/kernel/testcases/closures/for_in_closure.dart.expect
diff --git a/pkg/kernel/testcases/closures/for_in_closure.dart.expect b/pkg/kernel/testcases/closures/for_in_closure.dart.expect
index ade4f660b13cb9cb31dfb7f8b87b29dad33c3e91..8f9883881b5834aea99fc970af61c657e8bcdd95 100644
--- a/pkg/kernel/testcases/closures/for_in_closure.dart.expect
+++ b/pkg/kernel/testcases/closures/for_in_closure.dart.expect
@@ -5,8 +5,11 @@ import "dart:core" as core;
static const field dynamic numbers = const <core::int>[0, 1, 2, 3, 4, 5, 6, 7, 8, 9];
static method main() → dynamic {
dynamic closures = <dynamic>[];
+ final Vector #context = MakeVector(3);
+ #context[2] = 0;
for (core::int i in self::numbers) {
final Vector #context = MakeVector(3);
+ #context[1] = #context;
#context[2] = i;
{
closures.add(MakeClosure<() → dynamic>(self::closure#main#function, #context));
@@ -22,5 +25,5 @@ static method main() → dynamic {
}
}
static method closure#main#function(Vector #contextParameter) → dynamic {
- return #contextParameter[2];
+ return (#contextParameter[2]).+(#contextParameter[1][2]);
}
« no previous file with comments | « pkg/kernel/testcases/closures/for_in_closure.dart ('k') | pkg/kernel/testcases/closures/loop2.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698