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

Side by Side Diff: pkg/kernel/testcases/closures/capture_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 unified diff | Download patch
OLDNEW
1 library; 1 library;
2 import self as self; 2 import self as self;
3 3
4 static method main(dynamic arguments) → dynamic { 4 static method main(dynamic arguments) → dynamic {
5 final Vector #context = MakeVector(2); 5 final Vector #context = MakeVector(3);
6 #context[1] = MakeClosure<() → dynamic>(self::closure#main#f, #context); 6 #context[2] = MakeClosure<() → dynamic>(self::closure#main#f, #context);
7 final () → dynamic g = MakeClosure<() → dynamic>(self::closure#main#g, #contex t); 7 final () → dynamic g = MakeClosure<() → dynamic>(self::closure#main#g, #contex t);
8 g.call(); 8 g.call();
9 } 9 }
10 static method closure#main#f(Vector #contextParameter) → dynamic { 10 static method closure#main#f(Vector #contextParameter) → dynamic {
11 return null; 11 return null;
12 } 12 }
13 static method closure#main#g(Vector #contextParameter) → dynamic { 13 static method closure#main#g(Vector #contextParameter) → dynamic {
14 return (#contextParameter[1]).call(); 14 return (#contextParameter[2]).call();
15 } 15 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698