| Index: pkg/kernel/testcases/reify/closure2_test.dart.expect
|
| diff --git a/pkg/kernel/testcases/reify/closure2_test.dart.expect b/pkg/kernel/testcases/reify/closure2_test.dart.expect
|
| index a6c537adeaee32d64ed5c80c03e43855a2b74de8..3c547f5902b73588c49ef3be3b9d18fef9fe58c1 100644
|
| --- a/pkg/kernel/testcases/reify/closure2_test.dart.expect
|
| +++ b/pkg/kernel/testcases/reify/closure2_test.dart.expect
|
| @@ -41,7 +41,7 @@ class Closure#A#fun#function extends core::Object implements core::Function, int
|
| constructor •(typ::ReifiedType $type, final mock::Context context) → dynamic
|
| : self::Closure#A#fun#function::$type = $type, self::Closure#A#fun#function::context = context
|
| ;
|
| - method call(dynamic o) → dynamic {
|
| + method call(dynamic o) → core::bool {
|
| "This is a temporary solution. In the VM, this will become an additional parameter.";
|
| final mock::Context #contextParameter = this.{self::Closure#A#fun#function::context};
|
| return typ::isSubtypeOf(int::type(o), this.$Closure#A#fun#function$T);
|
| @@ -53,7 +53,7 @@ class Closure#A#fun#function extends core::Object implements core::Function, int
|
| }
|
| static final field core::List<dec::Class> $declarations = (core::List<dec::Class> d) → core::List<dec::Class> {
|
| dec::init(d, 0, new typ::Interface::•(d.[](17)));
|
| - dec::init(d, 1, new typ::Interface::•(d.[](17)), <dynamic>[new typ::Interface::•(d.[](19))], new typ::FunctionType::•(new typ::Interface::•(d.[](19)), const typ::Dynamic::•(), 0, <dynamic>[const typ::Dynamic::•()]));
|
| + dec::init(d, 1, new typ::Interface::•(d.[](17)), <dynamic>[new typ::Interface::•(d.[](19))], new typ::FunctionType::•(new typ::Interface::•(d.[](19)), new typ::Interface::•(d.[](5)), 0, <dynamic>[const typ::Dynamic::•()]));
|
| dec::init(d, 2, new typ::Interface::•(d.[](17)));
|
| dec::init(d, 3, new typ::Interface::•(d.[](17)));
|
| dec::init(d, 4, new typ::Interface::•(d.[](17)));
|
| @@ -79,7 +79,7 @@ static final field core::List<dec::Class> $declarations = (core::List<dec::Class
|
| return d;
|
| }.call(dec::allocateDeclarations(<dynamic>["A", "Closure#A#fun#function", "X", "Y", "Null", "bool", "String", "int", "double", "Type", "AbstractClassInstantiationError", "NoSuchMethodError", "CyclicInitializationError", "UnsupportedError", "IntegerDivisionByZeroException", "RangeError", "ArgumentError", "Object", "HasRuntimeTypeGetter", "Function", "Comparable", "Pattern", "num", "Error", "Exception"], <dynamic>[1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0]));
|
| static method main() → dynamic {
|
| - dynamic tester = new self::A::•(new typ::Interface::•(self::$declarations.[](0), <dynamic>[new typ::Interface::•(self::$declarations.[](2))])).fun();
|
| + dynamic tester = new self::A::•(new typ::Interface::•(self::$declarations.[](0), <dynamic>[new typ::Interface::•(self::$declarations.[](2))])).{self::A::fun}();
|
| tes::expectTrue(tester.call(new self::X::•()));
|
| tes::expectFalse(tester.call(new self::Y::•()));
|
| }
|
|
|