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

Unified Diff: pkg/kernel/testcases/closures/closures.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/closures.dart.expect
diff --git a/pkg/kernel/testcases/closures/closures.dart.expect b/pkg/kernel/testcases/closures/closures.dart.expect
index f0138a994b9c8e3ef4b9846b3288c02c5f2b790e..ebfad37eb3584744f7fe5f2f375fc0ed400f1046 100644
--- a/pkg/kernel/testcases/closures/closures.dart.expect
+++ b/pkg/kernel/testcases/closures/closures.dart.expect
@@ -7,11 +7,11 @@ 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;
self::f = MakeClosure<(dynamic) → dynamic>(self::closure#main#function, #context);
self::foo();
}
static method closure#main#function(Vector #contextParameter, dynamic x) → dynamic {
- return (#contextParameter[1]).[](x);
+ return (#contextParameter[2]).[](x);
}

Powered by Google App Engine
This is Rietveld 408576698