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

Unified Diff: pkg/kernel/testcases/closures/named_closure.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/named_closure.dart.expect
diff --git a/pkg/kernel/testcases/closures/named_closure.dart.expect b/pkg/kernel/testcases/closures/named_closure.dart.expect
index 0fe4e5cc4143ecaec1a77f69742141c5cdc34315..7fe9b5d527b95ff81e728c4464a148e2ca991479 100644
--- a/pkg/kernel/testcases/closures/named_closure.dart.expect
+++ b/pkg/kernel/testcases/closures/named_closure.dart.expect
@@ -7,12 +7,12 @@ static method foo() → dynamic {
core::print(self::f.call(0));
}
static method main(dynamic arguments) → dynamic {
- final Vector #context = MakeVector(2);
- #context[1] = arguments;
+ final Vector #context = MakeVector(3);
+ #context[2] = arguments;
final (dynamic) → dynamic g = MakeClosure<(dynamic) → dynamic>(self::closure#main#g, #context);
self::f = g;
self::foo();
}
static method closure#main#g(Vector #contextParameter, dynamic x) → dynamic {
- return (#contextParameter[1]).[](x);
+ return (#contextParameter[2]).[](x);
}

Powered by Google App Engine
This is Rietveld 408576698