| Index: pkg/kernel/testcases/closures/instance_tear_off.dart.expect
|
| diff --git a/pkg/kernel/testcases/closures/instance_tear_off.dart.expect b/pkg/kernel/testcases/closures/instance_tear_off.dart.expect
|
| index 62725d2e8d3578b28261c9169b0f8cc0cd8693be..e23bec5f3539c38a9e32a7be0f9e97a51e70d112 100644
|
| --- a/pkg/kernel/testcases/closures/instance_tear_off.dart.expect
|
| +++ b/pkg/kernel/testcases/closures/instance_tear_off.dart.expect
|
| @@ -3,12 +3,12 @@ import self as self;
|
| import "dart:core" as core;
|
|
|
| class C extends core::Object {
|
| - field dynamic f = MakeClosure<() → dynamic>(self::closure#C#f#function, null);
|
| + field dynamic f = MakeClosure<() → core::String>(self::closure#C#f#function, null);
|
| constructor •() → void
|
| : super core::Object::•()
|
| ;
|
| get g() → dynamic {
|
| - return MakeClosure<(dynamic) → dynamic>(self::closure#C#g#function, null);
|
| + return MakeClosure<(dynamic) → core::String>(self::closure#C#g#function, null);
|
| }
|
| method a() → dynamic {
|
| return "a";
|
| @@ -44,12 +44,12 @@ class C extends core::Object {
|
| }
|
| }
|
| class D<T extends core::Object> extends core::Object {
|
| - field dynamic f = MakeClosure<() → dynamic>(self::closure#D#f#function, null);
|
| + field dynamic f = MakeClosure<() → core::String>(self::closure#D#f#function, null);
|
| constructor •() → void
|
| : super core::Object::•()
|
| ;
|
| get g() → dynamic {
|
| - return MakeClosure<(dynamic) → dynamic>(self::closure#D#g#function, null);
|
| + return MakeClosure<(dynamic) → core::String>(self::closure#D#g#function, null);
|
| }
|
| method a() → dynamic {
|
| return "a";
|
| @@ -85,12 +85,12 @@ class D<T extends core::Object> extends core::Object {
|
| }
|
| }
|
| class E<T extends core::Object> extends core::Object {
|
| - field dynamic f = MakeClosure<() → dynamic>(self::closure#E#f#function, null);
|
| + field dynamic f = MakeClosure<() → core::String>(self::closure#E#f#function, null);
|
| constructor •() → void
|
| : super core::Object::•()
|
| ;
|
| get g() → dynamic {
|
| - return MakeClosure<(dynamic) → dynamic>(self::closure#E#g#function, null);
|
| + return MakeClosure<(dynamic) → core::String>(self::closure#E#g#function, null);
|
| }
|
| method a() → dynamic {
|
| return "a";
|
| @@ -155,7 +155,7 @@ static method main(dynamic arguments) → dynamic {
|
| self::test(new self::D::•<core::int>());
|
| self::test(new self::E::•<core::int>());
|
| }
|
| -static method closure#C#g#function(Vector #contextParameter, dynamic x) → dynamic {
|
| +static method closure#C#g#function(Vector #contextParameter, dynamic x) → core::String {
|
| return "g(${x})";
|
| }
|
| static method closure#C#a(Vector #contextParameter) → dynamic
|
| @@ -166,10 +166,10 @@ static method closure#C#c(Vector #contextParameter, dynamic x, [dynamic y = 2])
|
| return (#contextParameter[1]).{self::C::c}(x, y);
|
| static method closure#C#d(Vector #contextParameter, dynamic x, {dynamic y = 2}) → dynamic
|
| return (#contextParameter[1]).{self::C::d}(x, y: y);
|
| -static method closure#C#f#function(Vector #contextParameter) → dynamic {
|
| +static method closure#C#f#function(Vector #contextParameter) → core::String {
|
| return "f";
|
| }
|
| -static method closure#D#g#function(Vector #contextParameter, dynamic x) → dynamic {
|
| +static method closure#D#g#function(Vector #contextParameter, dynamic x) → core::String {
|
| return "g(${x})";
|
| }
|
| static method closure#D#a(Vector #contextParameter) → dynamic
|
| @@ -180,10 +180,10 @@ static method closure#D#c(Vector #contextParameter, dynamic x, [dynamic y = 2])
|
| return (#contextParameter[1]).{self::D::c}(x, y);
|
| static method closure#D#d(Vector #contextParameter, dynamic x, {dynamic y = 2}) → dynamic
|
| return (#contextParameter[1]).{self::D::d}(x, y: y);
|
| -static method closure#D#f#function(Vector #contextParameter) → dynamic {
|
| +static method closure#D#f#function(Vector #contextParameter) → core::String {
|
| return "f";
|
| }
|
| -static method closure#E#g#function(Vector #contextParameter, dynamic x) → dynamic {
|
| +static method closure#E#g#function(Vector #contextParameter, dynamic x) → core::String {
|
| return "g(${x})";
|
| }
|
| static method closure#E#a(Vector #contextParameter) → dynamic
|
| @@ -194,6 +194,6 @@ static method closure#E#c(Vector #contextParameter, dynamic x, [dynamic y = 2])
|
| return (#contextParameter[1]).{self::E::c}(x, y);
|
| static method closure#E#d(Vector #contextParameter, dynamic x, {dynamic y = 2}) → dynamic
|
| return (#contextParameter[1]).{self::E::d}(x, y: y);
|
| -static method closure#E#f#function(Vector #contextParameter) → dynamic {
|
| +static method closure#E#f#function(Vector #contextParameter) → core::String {
|
| return "f";
|
| }
|
|
|