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

Unified Diff: pkg/kernel/testcases/closures/closure_in_initializer_closure.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_initializer_closure.dart.expect
diff --git a/pkg/kernel/testcases/closures/closure_in_initializer_closure.dart.expect b/pkg/kernel/testcases/closures/closure_in_initializer_closure.dart.expect
index ac9db2d41b3ba5b68775b2299685a0229aa450f9..164ae630f637ce5f9cce3187f0472e3ab349abbe 100644
--- a/pkg/kernel/testcases/closures/closure_in_initializer_closure.dart.expect
+++ b/pkg/kernel/testcases/closures/closure_in_initializer_closure.dart.expect
@@ -5,7 +5,7 @@ import "dart:core" as core;
class C extends core::Object {
field dynamic t;
constructor foo(dynamic f) → void
- : final Vector #context = MakeVector(3), dynamic #t1 = #context[2] = f, self::C::t = MakeClosure<() → dynamic>(self::closure#C#foo#function, #context), super core::Object::•() {
+ : final dynamic #context = MakeVector(3), dynamic #t1 = #context[2] = f, self::C::t = MakeClosure<() → dynamic>(self::closure#C#foo#function, #context), super core::Object::•() {
core::print(1);
}
}
@@ -16,17 +16,17 @@ static method main() → dynamic {
c.t().call("fisk");
core::print(3);
}
-static method closure#C#foo#function#function(Vector #contextParameter, dynamic x) → dynamic {
+static method closure#C#foo#function#function(dynamic #contextParameter, dynamic x) → dynamic {
(#contextParameter[1][2]).call("${#contextParameter[2]}${x}");
}
-static method closure#C#foo#function(Vector #contextParameter) → dynamic {
- final Vector #context = MakeVector(3);
+static method closure#C#foo#function(dynamic #contextParameter) → dynamic {
+ final dynamic #context = MakeVector(3);
#context[1] = #contextParameter;
#context[2] = null;
dynamic g = MakeClosure<(dynamic) → dynamic>(self::closure#C#foo#function#function, #context);
#context[2] = "hest";
return g;
}
-static method closure#main#function(Vector #contextParameter, dynamic x) → dynamic {
+static method closure#main#function(dynamic #contextParameter, dynamic x) → dynamic {
return core::print(x);
}
« no previous file with comments | « pkg/kernel/testcases/closures/closure_in_initializer.dart.expect ('k') | pkg/kernel/testcases/closures/closure_types.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698