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

Unified Diff: pkg/kernel/testcases/closures/closure_in_initializer.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/closure_in_initializer.dart.expect
diff --git a/pkg/kernel/testcases/closures/closure_in_initializer.dart.expect b/pkg/kernel/testcases/closures/closure_in_initializer.dart.expect
index 4dd621d48b6c15208f1801a1e61b26380f8abbaf..f159c1268716363ac2f6ddfba111f9a4e5281bf6 100644
--- a/pkg/kernel/testcases/closures/closure_in_initializer.dart.expect
+++ b/pkg/kernel/testcases/closures/closure_in_initializer.dart.expect
@@ -5,7 +5,7 @@ import "dart:core" as core;
class C extends core::Object {
field dynamic t;
constructor foo(dynamic f) → void
- : self::C::t = let final Vector #context = MakeVector(2) in let dynamic #t1 = #context[1] = f in MakeClosure<() → dynamic>(self::closure#C#foo#function, #context), super core::Object::•() {
+ : final Vector #context = MakeVector(2), dynamic #t1 = #context[1] = f, self::C::t = MakeClosure<() → dynamic>(self::closure#C#foo#function, #context), super core::Object::•() {
final Vector #context = MakeVector(2);
#context[1] = f;
core::print(1);
@@ -13,7 +13,7 @@ class C extends core::Object {
}
static method main() → dynamic {
core::print(0);
- dynamic c = new self::C::foo(MakeClosure<() → void>(self::closure#main#function, null));
+ dynamic c = new self::C::foo(MakeClosure<() → dynamic>(self::closure#main#function, null));
core::print(2);
c.t();
core::print(3);
@@ -21,6 +21,6 @@ static method main() → dynamic {
static method closure#C#foo#function(Vector #contextParameter) → dynamic {
return (#contextParameter[1]).call();
}
-static method closure#main#function(Vector #contextParameter) → void {
+static method closure#main#function(Vector #contextParameter) → dynamic {
return core::print("hest");
}

Powered by Google App Engine
This is Rietveld 408576698