Index: pkg/kernel/testcases/closures/closure_in_initializer_closure.dart.expect |
diff --git a/pkg/kernel/testcases/closures/closure_in_initializer_closure.dart.expect b/pkg/kernel/testcases/closures/closure_in_initializer_closure.dart.expect |
index 749b8b4bdb36307f791929b3062c60e0bf213fb7..ac9db2d41b3ba5b68775b2299685a0229aa450f9 100644 |
--- a/pkg/kernel/testcases/closures/closure_in_initializer_closure.dart.expect |
+++ b/pkg/kernel/testcases/closures/closure_in_initializer_closure.dart.expect |
@@ -5,7 +5,7 @@ import "dart:core" as core; |
class C extends core::Object { |
field dynamic t; |
constructor foo(dynamic f) → void |
- : final Vector #context = MakeVector(2), dynamic #t1 = #context[1] = f, self::C::t = MakeClosure<() → dynamic>(self::closure#C#foo#function, #context), super core::Object::•() { |
+ : final Vector #context = MakeVector(3), dynamic #t1 = #context[2] = f, self::C::t = MakeClosure<() → dynamic>(self::closure#C#foo#function, #context), super core::Object::•() { |
core::print(1); |
} |
} |
@@ -17,14 +17,14 @@ static method main() → dynamic { |
core::print(3); |
} |
static method closure#C#foo#function#function(Vector #contextParameter, dynamic x) → dynamic { |
- (#contextParameter[0][1]).call("${#contextParameter[1]}${x}"); |
+ (#contextParameter[1][2]).call("${#contextParameter[2]}${x}"); |
} |
static method closure#C#foo#function(Vector #contextParameter) → dynamic { |
- final Vector #context = MakeVector(2); |
- #context[0] = #contextParameter; |
- #context[1] = null; |
+ final Vector #context = MakeVector(3); |
+ #context[1] = #contextParameter; |
+ #context[2] = null; |
dynamic g = MakeClosure<(dynamic) → dynamic>(self::closure#C#foo#function#function, #context); |
- #context[1] = "hest"; |
+ #context[2] = "hest"; |
return g; |
} |
static method closure#main#function(Vector #contextParameter, dynamic x) → dynamic { |