Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(1264)

Unified Diff: pkg/kernel/testcases/closures/instance_tear_off.dart.expect

Issue 2891053003: Add support for converted closures with explicit contexts to VM (Closed)
Patch Set: Temporarily disable Run step in closures test suite Created 3 years, 5 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
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 740fa9626f37cb5d6ea668c0c6261a936a0e9c65..2d8297742776b0d2a41ec79807736a5008296c6b 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<() → core::String>(self::closure#C#f#function, null);
- constructor •() → void
+ field dynamic f = MakeClosure<() → dynamic>(self::closure#C#f#function, null);
+ default constructor •() → void
: super core::Object::•()
;
get g() → dynamic {
- return MakeClosure<(dynamic) → core::String>(self::closure#C#g#function, null);
+ return MakeClosure<(dynamic) → dynamic>(self::closure#C#g#function, null);
}
method a() → dynamic {
return "a";
@@ -24,12 +24,12 @@ class C extends core::Object {
}
}
class D<T extends core::Object> extends core::Object {
- field dynamic f = MakeClosure<() → core::String>(self::closure#D#f#function, null);
- constructor •() → void
+ field dynamic f = MakeClosure<() → dynamic>(self::closure#D#f#function, null);
+ default constructor •() → void
: super core::Object::•()
;
get g() → dynamic {
- return MakeClosure<(dynamic) → core::String>(self::closure#D#g#function, null);
+ return MakeClosure<(dynamic) → dynamic>(self::closure#D#g#function, null);
}
method a() → dynamic {
return "a";
@@ -45,12 +45,12 @@ class D<T extends core::Object> extends core::Object {
}
}
class E<T extends core::Object> extends core::Object {
- field dynamic f = MakeClosure<() → core::String>(self::closure#E#f#function, null);
- constructor •() → void
+ field dynamic f = MakeClosure<() → dynamic>(self::closure#E#f#function, null);
+ default constructor •() → void
: super core::Object::•()
;
get g() → dynamic {
- return MakeClosure<(dynamic) → core::String>(self::closure#E#g#function, null);
+ return MakeClosure<(dynamic) → dynamic>(self::closure#E#g#function, null);
}
method a() → dynamic {
return "a";
@@ -95,21 +95,21 @@ 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) → core::String {
+static method closure#C#g#function(Vector #contextParameter, dynamic x) → dynamic {
return "g(${x})";
}
-static method closure#C#f#function(Vector #contextParameter) → core::String {
+static method closure#C#f#function(Vector #contextParameter) → dynamic {
return "f";
}
-static method closure#D#g#function(Vector #contextParameter, dynamic x) → core::String {
+static method closure#D#g#function(Vector #contextParameter, dynamic x) → dynamic {
return "g(${x})";
}
-static method closure#D#f#function(Vector #contextParameter) → core::String {
+static method closure#D#f#function(Vector #contextParameter) → dynamic {
return "f";
}
-static method closure#E#g#function(Vector #contextParameter, dynamic x) → core::String {
+static method closure#E#g#function(Vector #contextParameter, dynamic x) → dynamic {
return "g(${x})";
}
-static method closure#E#f#function(Vector #contextParameter) → core::String {
+static method closure#E#f#function(Vector #contextParameter) → dynamic {
return "f";
}
« no previous file with comments | « pkg/kernel/testcases/closures/for_in_closure.dart.expect ('k') | pkg/kernel/testcases/closures/static_tear_off.dart.expect » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698