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

Unified Diff: pkg/kernel/testcases/closures/field.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/field.dart.expect
diff --git a/pkg/kernel/testcases/closures/field.dart.expect b/pkg/kernel/testcases/closures/field.dart.expect
index bdddcdb6810ebdd971de9cbd890a96343f1faa22..9c5341006bd132d6ee98baad6e1f4357aef3cab6 100644
--- a/pkg/kernel/testcases/closures/field.dart.expect
+++ b/pkg/kernel/testcases/closures/field.dart.expect
@@ -3,14 +3,14 @@ import self as self;
import "dart:core" as core;
class C<T extends core::Object> extends core::Object {
- field dynamic v = MakeClosure<(dynamic) → core::bool>(self::closure#C#v#function, null);
- final field dynamic y = MakeClosure<() → core::String>(self::closure#C#y#function, null);
- static final field dynamic z = MakeClosure<() → core::String>(self::closure#C#z#function, null);
- constructor •() → void
+ field dynamic v = MakeClosure<(dynamic) → dynamic>(self::closure#C#v#function, null);
+ final field dynamic y = MakeClosure<() → dynamic>(self::closure#C#y#function, null);
+ static final field dynamic z = MakeClosure<() → dynamic>(self::closure#C#z#function, null);
+ default constructor •() → void
: super core::Object::•()
;
}
-static field dynamic x = MakeClosure<() → core::String>(self::closure#x#function, null);
+static field dynamic x = MakeClosure<() → dynamic>(self::closure#x#function, null);
static method main() → dynamic {
if(!new self::C::•<core::String>().v(""))
throw "C<String>.v false on String";
@@ -31,15 +31,15 @@ static method main() → dynamic {
if(!"z".==(self::C::z.call()))
throw "z";
}
-static method closure#C#v#function(Vector #contextParameter, dynamic x) → core::bool {
+static method closure#C#v#function(Vector #contextParameter, dynamic x) → dynamic {
return x is dynamic;
}
-static method closure#C#y#function(Vector #contextParameter) → core::String {
+static method closure#C#y#function(Vector #contextParameter) → dynamic {
return "y";
}
-static method closure#C#z#function(Vector #contextParameter) → core::String {
+static method closure#C#z#function(Vector #contextParameter) → dynamic {
return "z";
}
-static method closure#x#function(Vector #contextParameter) → core::String {
+static method closure#x#function(Vector #contextParameter) → dynamic {
return "x";
}

Powered by Google App Engine
This is Rietveld 408576698