| Index: pkg/kernel/testcases/closures_initializers/initializers.dart.expect
|
| diff --git a/pkg/kernel/testcases/closures_initializers/initializers.dart.expect b/pkg/kernel/testcases/closures_initializers/initializers.dart.expect
|
| index d4eb3404d6d96f5ddab5d35e7dc5cc6d868622cf..b97b4f05749968c24375f98e79575d23aa910707 100644
|
| --- a/pkg/kernel/testcases/closures_initializers/initializers.dart.expect
|
| +++ b/pkg/kernel/testcases/closures_initializers/initializers.dart.expect
|
| @@ -10,7 +10,18 @@ class X extends core::Object {
|
| class A extends core::Object {
|
| field self::X foo;
|
| constructor •(self::X i) → void
|
| - : self::A::foo = let final Vector #context = MakeVector(2) in let dynamic #t1 = #context[1] = i in (MakeClosure<() → dynamic>(self::closure#A#function#function, #context)).call(), super core::Object::•()
|
| + : final Vector #context = MakeVector(2), dynamic #t1 = #context[1] = i, self::A::foo = (MakeClosure<() → dynamic>(self::closure#A#function#function, #context)).call(), super core::Object::•()
|
| + ;
|
| +}
|
| +class S extends self::A {
|
| + constructor •(self::X i) → void
|
| + : final Vector #context = MakeVector(2), dynamic #t2 = #context[1] = i, super self::A::•((MakeClosure<() → dynamic>(self::closure#S#function#function, #context)).call())
|
| + ;
|
| +}
|
| +class S2 extends core::Object {
|
| + field self::X foo_li;
|
| + constructor •(self::X foo) → void
|
| + : final Vector #context = MakeVector(2), dynamic #t3 = #context[1] = foo, dynamic #li_0 = (MakeClosure<() → dynamic>(self::closure#S2#function#function, #context)).call(), self::S2::foo_li = #li_0, super core::Object::•()
|
| ;
|
| }
|
| class B extends core::Object {
|
| @@ -18,7 +29,7 @@ class B extends core::Object {
|
| constructor named(self::X foo) → void
|
| : super core::Object::•() {}
|
| constructor •(self::X foo) → void
|
| - : dynamic extracted#0 = let final Vector #context = MakeVector(2) in let dynamic #t2 = #context[1] = foo in (MakeClosure<() → dynamic>(self::closure#B#function#function, #context)).call(), this self::B::named(extracted#0)
|
| + : final Vector #context = MakeVector(2), dynamic #t4 = #context[1] = foo, this self::B::named((MakeClosure<() → dynamic>(self::closure#B#function#function, #context)).call())
|
| ;
|
| }
|
| static method main() → dynamic {
|
| @@ -26,10 +37,20 @@ static method main() → dynamic {
|
| a.foo;
|
| self::B b = new self::B::•(new self::X::•());
|
| b.foo;
|
| + self::S s = new self::S::•(new self::X::•());
|
| + s.foo;
|
| + self::S2 s2 = new self::S2::•(new self::X::•());
|
| + s2.foo_li;
|
| }
|
| static method closure#A#function#function(Vector #contextParameter) → dynamic {
|
| return #contextParameter[1];
|
| }
|
| +static method closure#S#function#function(Vector #contextParameter) → dynamic {
|
| + return #contextParameter[1];
|
| +}
|
| +static method closure#S2#function#function(Vector #contextParameter) → dynamic {
|
| + return #contextParameter[1];
|
| +}
|
| static method closure#B#function#function(Vector #contextParameter) → dynamic {
|
| return #contextParameter[1];
|
| }
|
|
|