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

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

Issue 3007623002: Fix many bugs with closure conversion in checked mode. (Closed)
Patch Set: Review comments Created 3 years, 4 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 1f6acab2de9ea95ead3fde6c48756b9caadb5d0a..7b30d58a402d77c570b0e873c4214135f2f75867 100644
--- a/pkg/kernel/testcases/closures/closure_in_constructor.dart.expect
+++ b/pkg/kernel/testcases/closures/closure_in_constructor.dart.expect
@@ -5,14 +5,14 @@ import "dart:core" as core;
class C1 extends core::Object {
field dynamic x;
constructor •(dynamic y) → void
- : final Vector #context = MakeVector(3), dynamic #t1 = #context[2] = y, self::C1::x = MakeClosure<() → dynamic>(self::closure#C1#function#function, #context), super core::Object::•()
+ : final dynamic #context = MakeVector(3), dynamic #t1 = #context[2] = 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(3);
+ final dynamic #context = MakeVector(3);
#context[2] = y;
this.x = MakeClosure<() → dynamic>(self::closure#C2#function#function, #context);
}
@@ -21,9 +21,9 @@ static method main() → dynamic {
new self::C1::•("hest").x();
new self::C2::•("naebdyr").x();
}
-static method closure#C1#function#function(Vector #contextParameter) → dynamic {
+static method closure#C1#function#function(dynamic #contextParameter) → dynamic {
return core::print("Hello ${#contextParameter[2]}");
}
-static method closure#C2#function#function(Vector #contextParameter) → dynamic {
+static method closure#C2#function#function(dynamic #contextParameter) → dynamic {
return core::print("Hello ${#contextParameter[2]}");
}
« no previous file with comments | « pkg/kernel/testcases/closures/catch.dart.expect ('k') | pkg/kernel/testcases/closures/closure_in_initializer.dart.expect » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698