Index: pkg/kernel/testcases/closures/for_loop.dart.expect |
diff --git a/pkg/kernel/testcases/closures/for_loop.dart.expect b/pkg/kernel/testcases/closures/for_loop.dart.expect |
index 56bd3400cea1c3e61316dc3d32cb61b4503739e1..5d504b8e86cc34a9f75fffac29abdd247f0db4db 100644 |
--- a/pkg/kernel/testcases/closures/for_loop.dart.expect |
+++ b/pkg/kernel/testcases/closures/for_loop.dart.expect |
@@ -6,13 +6,13 @@ static const field core::int max = 100; |
static method main() → dynamic { |
dynamic closures = <dynamic>[]; |
dynamic closures2 = <dynamic>[]; |
- final Vector #context = MakeVector(2); |
- #context[1] = null; |
+ final Vector #context = MakeVector(3); |
+ #context[2] = null; |
{ |
- Vector #context = MakeVector(2); |
- #context[0] = #context; |
- #context[1] = 0; |
- for (; (#context[1]).<(self::max); #context = CopyVector(#context), #context[1] = (#context[1]).+(1)) { |
+ Vector #context = MakeVector(3); |
+ #context[1] = #context; |
+ #context[2] = 0; |
+ for (; (#context[2]).<(self::max); #context = CopyVector(#context), #context[2] = (#context[2]).+(1)) { |
closures.add(MakeClosure<() → dynamic>(self::closure#main#function, #context)); |
closures2.add(MakeClosure<() → dynamic>(self::closure#main#function#1, #context)); |
} |
@@ -30,9 +30,9 @@ static method main() → dynamic { |
} |
} |
static method closure#main#function(Vector #contextParameter) → dynamic { |
- return #contextParameter[0][1] = #contextParameter[1]; |
+ return #contextParameter[1][2] = #contextParameter[2]; |
} |
static method closure#main#function#1(Vector #contextParameter) → dynamic { |
- if(!(#contextParameter[0][1]).==(self::max.-(1))) |
- throw "last: ${#contextParameter[0][1]} != ${self::max.-(1)}"; |
+ if(!(#contextParameter[1][2]).==(self::max.-(1))) |
+ throw "last: ${#contextParameter[1][2]} != ${self::max.-(1)}"; |
} |