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

Unified Diff: pkg/kernel/testcases/closures/closure_in_constructor.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_constructor.dart.expect
diff --git a/pkg/kernel/testcases/closures/closure_in_constructor.dart.expect b/pkg/kernel/testcases/closures/closure_in_constructor.dart.expect
index c8fea8f33894b8b8a899f8213635d161c1c441d8..2e3a64712f01c3a6e34ecff2aec190e4a101a4b2 100644
--- a/pkg/kernel/testcases/closures/closure_in_constructor.dart.expect
+++ b/pkg/kernel/testcases/closures/closure_in_constructor.dart.expect
@@ -5,16 +5,16 @@ import "dart:core" as core;
class C1 extends core::Object {
field dynamic x;
constructor •(dynamic y) → void
- : self::C1::x = let final Vector #context = MakeVector(2) in let dynamic #t1 = #context[1] = y in MakeClosure<() → dynamic>(self::closure#C1#function#function, #context), super core::Object::•()
+ : final Vector #context = MakeVector(2), dynamic #t1 = #context[1] = y, self::C1::x = MakeClosure<() → dynamic>(self::closure#C1#function#function, #context), super core::Object::•()
;
}
class C2 extends core::Object {
field dynamic x = null;
constructor •(dynamic y) → void
- : super core::Object::•() {
+ : final Vector #context = MakeVector(2), dynamic #t2 = #context[1] = y, super core::Object::•() {
final Vector #context = MakeVector(2);
#context[1] = y;
- this.x = MakeClosure<() → void>(self::closure#C2#function#function, #context);
+ this.x = MakeClosure<() → dynamic>(self::closure#C2#function#function, #context);
}
}
static method main() → dynamic {
@@ -24,6 +24,6 @@ static method main() → dynamic {
static method closure#C1#function#function(Vector #contextParameter) → dynamic {
return core::print("Hello ${#contextParameter[1]}");
}
-static method closure#C2#function#function(Vector #contextParameter) → void {
+static method closure#C2#function#function(Vector #contextParameter) → dynamic {
return core::print("Hello ${#contextParameter[1]}");
}

Powered by Google App Engine
This is Rietveld 408576698