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

Side by Side Diff: pkg/kernel/testcases/closures/field.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 import "dart:core" as core; 3 import "dart:core" as core;
4 4
5 class C<T extends core::Object> extends core::Object { 5 class C<T extends core::Object> extends core::Object {
6 field dynamic v = MakeClosure<<T extends core::Object>(dynamic) → dynamic, sel f::C::T>(self::closure#C#v#function, null); 6 field dynamic v = MakeClosure<<T extends core::Object>(dynamic) → dynamic, sel f::C::T>(self::closure#C#v#function, MakeVector(1));
7 final field dynamic y = MakeClosure<() → dynamic>(self::closure#C#y#function, null); 7 final field dynamic y = MakeClosure<() → dynamic>(self::closure#C#y#function, null);
8 static final field dynamic z = MakeClosure<() → dynamic>(self::closure#C#z#fun ction, null); 8 static final field dynamic z = MakeClosure<() → dynamic>(self::closure#C#z#fun ction, null);
9 default constructor •() → void 9 default constructor •() → void
10 : super core::Object::•() 10 : super core::Object::•()
11 ; 11 ;
12 } 12 }
13 static field dynamic x = MakeClosure<() → dynamic>(self::closure#x#function, nul l); 13 static field dynamic x = MakeClosure<() → dynamic>(self::closure#x#function, nul l);
14 static method main() → dynamic { 14 static method main() → dynamic {
15 if(!new self::C::•<core::String>().v("")) 15 if(!new self::C::•<core::String>().v(""))
16 throw "C<String>.v false on String"; 16 throw "C<String>.v false on String";
(...skipping 19 matching lines...) Expand all
36 } 36 }
37 static method closure#C#y#function(Vector #contextParameter) → dynamic { 37 static method closure#C#y#function(Vector #contextParameter) → dynamic {
38 return "y"; 38 return "y";
39 } 39 }
40 static method closure#C#z#function(Vector #contextParameter) → dynamic { 40 static method closure#C#z#function(Vector #contextParameter) → dynamic {
41 return "z"; 41 return "z";
42 } 42 }
43 static method closure#x#function(Vector #contextParameter) → dynamic { 43 static method closure#x#function(Vector #contextParameter) → dynamic {
44 return "x"; 44 return "x";
45 } 45 }
OLDNEW
« no previous file with comments | « pkg/kernel/testcases/closures/closures.dart.expect ('k') | pkg/kernel/testcases/closures/for_in_closure.dart.expect » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698