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

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

Issue 2998803002: [kernel] Support for top-level generic functions. (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.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 72adc0e226882b5847bc1e27eca3e972358cc80a..284c685ad121b9c1ad35eae86ce2f923278d7db1 100644
--- a/pkg/kernel/testcases/closures/closure_in_initializer.dart.expect
+++ b/pkg/kernel/testcases/closures/closure_in_initializer.dart.expect
@@ -5,12 +5,12 @@ import "dart:core" as core;
class C extends core::Object {
field dynamic t;
constructor foo(dynamic f, dynamic x) → void
- : final Vector #context = MakeVector(3), this self::C::foo#redir(f, x, #context)
+ : final Vector #context = MakeVector(4), this self::C::foo#redir(f, x, #context)
;
constructor foo#redir(dynamic f, dynamic x, final Vector #context) → void
- : dynamic #t1 = #context[1] = f, dynamic #t2 = #context[2] = x, self::C::t = MakeClosure<() → dynamic>(self::closure#C#foo#function, #context), super core::Object::•() {
- #context[2] = 1;
- core::print(#context[2]);
+ : dynamic #t1 = #context[2] = f, dynamic #t2 = #context[3] = x, self::C::t = MakeClosure<() → dynamic>(self::closure#C#foo#function, #context), super core::Object::•() {
+ #context[3] = 1;
+ core::print(#context[3]);
}
}
static method main() → dynamic {
@@ -21,7 +21,7 @@ static method main() → dynamic {
core::print(3);
}
static method closure#C#foo#function(Vector #contextParameter) → dynamic {
- return (#contextParameter[1]).call(#contextParameter[2]);
+ return (#contextParameter[2]).call(#contextParameter[3]);
}
static method closure#main#function(Vector #contextParameter, dynamic x) → dynamic {
return core::print("hest${x}");

Powered by Google App Engine
This is Rietveld 408576698