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

Side by Side Diff: pkg/kernel/testcases/closures/instance_tear_off.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 extends core::Object { 5 class C extends core::Object {
6 field dynamic f = MakeClosure<() → dynamic>(self::closure#C#f#function, null); 6 field dynamic f = MakeClosure<() → dynamic>(self::closure#C#f#function, null);
7 default constructor •() → void 7 default constructor •() → void
8 : super core::Object::•() 8 : super core::Object::•()
9 ; 9 ;
10 get g() → dynamic { 10 get g() → dynamic {
(...skipping 32 matching lines...) Expand 10 before | Expand all | Expand 10 after
43 method d(dynamic x, {dynamic y = 2}) → dynamic { 43 method d(dynamic x, {dynamic y = 2}) → dynamic {
44 return x.+(y); 44 return x.+(y);
45 } 45 }
46 } 46 }
47 class E<T extends core::Object> extends core::Object { 47 class E<T extends core::Object> extends core::Object {
48 field dynamic f = MakeClosure<() → dynamic>(self::closure#E#f#function, null); 48 field dynamic f = MakeClosure<() → dynamic>(self::closure#E#f#function, null);
49 default constructor •() → void 49 default constructor •() → void
50 : super core::Object::•() 50 : super core::Object::•()
51 ; 51 ;
52 get g() → dynamic { 52 get g() → dynamic {
53 return MakeClosure<<T extends core::Object>(T) → dynamic, self::E::T>(self:: closure#E#g#function, null); 53 return MakeClosure<<T extends core::Object>(T) → dynamic, self::E::T>(self:: closure#E#g#function, MakeVector(1));
54 } 54 }
55 method a() → dynamic { 55 method a() → dynamic {
56 return "a"; 56 return "a";
57 } 57 }
58 method b(self::E::T x) → dynamic { 58 method b(self::E::T x) → dynamic {
59 return x; 59 return x;
60 } 60 }
61 method c(self::E::T x, [self::E::T y = 2]) → dynamic { 61 method c(self::E::T x, [self::E::T y = 2]) → dynamic {
62 return x.+(y); 62 return x.+(y);
63 } 63 }
(...skipping 42 matching lines...) Expand 10 before | Expand all | Expand 10 after
106 } 106 }
107 static method closure#D#f#function(Vector #contextParameter) → dynamic { 107 static method closure#D#f#function(Vector #contextParameter) → dynamic {
108 return "f"; 108 return "f";
109 } 109 }
110 static method closure#E#g#function<T extends core::Object>(Vector #contextParame ter, self::closure#E#g#function::T x) → dynamic { 110 static method closure#E#g#function<T extends core::Object>(Vector #contextParame ter, self::closure#E#g#function::T x) → dynamic {
111 return "g(${x})"; 111 return "g(${x})";
112 } 112 }
113 static method closure#E#f#function(Vector #contextParameter) → dynamic { 113 static method closure#E#f#function(Vector #contextParameter) → dynamic {
114 return "f"; 114 return "f";
115 } 115 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698