| 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 fcbac2f0d7d7f5dc578ea522d52ba1e2500c3094..106475a6437cc9cfee0f2fc2f854d0245ec2b640 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
|
| - : self::C::t = let final Vector #context = MakeVector(2) in let dynamic #t1 = #context[1] = f in MakeClosure<() → dynamic>(self::closure#C#foo#function, #context), super core::Object::•() {
|
| + : 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(2);
|
| #context[1] = f;
|
| core::print(1);
|
| @@ -13,7 +13,7 @@ class C extends core::Object {
|
| }
|
| static method main() → dynamic {
|
| core::print(0);
|
| - dynamic c = new self::C::foo(MakeClosure<(dynamic) → void>(self::closure#main#function, null));
|
| + dynamic c = new self::C::foo(MakeClosure<(dynamic) → dynamic>(self::closure#main#function, null));
|
| core::print(2);
|
| c.t().call("fisk");
|
| core::print(3);
|
| @@ -29,6 +29,6 @@ static method closure#C#foo#function(Vector #contextParameter) → dynamic {
|
| #context[1] = "hest";
|
| return g;
|
| }
|
| -static method closure#main#function(Vector #contextParameter, dynamic x) → void {
|
| +static method closure#main#function(Vector #contextParameter, dynamic x) → dynamic {
|
| return core::print(x);
|
| }
|
|
|