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

Side by Side Diff: pkg/kernel/testcases/closures/instance_tear_off.dart.expect

Issue 3007623002: Fix many bugs with closure conversion in checked mode. (Closed)
Patch Set: Created 3 years, 3 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 62 matching lines...) Expand 10 before | Expand all | Expand 10 after
73 self::expect(42, o.d(40)); 73 self::expect(42, o.d(40));
74 self::expect(42, o.d.call(40)); 74 self::expect(42, o.d.call(40));
75 self::expect(87, o.d(80, y: 7)); 75 self::expect(87, o.d(80, y: 7));
76 self::expect(87, o.d.call(80, y: 7)); 76 self::expect(87, o.d.call(80, y: 7));
77 } 77 }
78 static method main(dynamic arguments) → dynamic { 78 static method main(dynamic arguments) → dynamic {
79 self::test(new self::C::•()); 79 self::test(new self::C::•());
80 self::test(new self::D::•<core::int>()); 80 self::test(new self::D::•<core::int>());
81 self::test(new self::E::•<core::int>()); 81 self::test(new self::E::•<core::int>());
82 } 82 }
83 static method closure#C#g#function(Vector #contextParameter, dynamic x) → dynami c { 83 static method closure#C#g#function(dynamic #contextParameter, dynamic x) → dynam ic {
84 return "g(${x})"; 84 return "g(${x})";
85 } 85 }
86 static method closure#C#f#function(Vector #contextParameter) → dynamic { 86 static method closure#C#f#function(dynamic #contextParameter) → dynamic {
87 return "f"; 87 return "f";
88 } 88 }
89 static method closure#D#g#function(Vector #contextParameter, dynamic x) → dynami c { 89 static method closure#D#g#function(dynamic #contextParameter, dynamic x) → dynam ic {
90 return "g(${x})"; 90 return "g(${x})";
91 } 91 }
92 static method closure#D#f#function(Vector #contextParameter) → dynamic { 92 static method closure#D#f#function(dynamic #contextParameter) → dynamic {
93 return "f"; 93 return "f";
94 } 94 }
95 static method closure#E#g#function<T extends core::Object>(Vector #contextParame ter, self::closure#E#g#function::T x) → dynamic { 95 static method closure#E#g#function<T extends core::Object>(dynamic #contextParam eter, self::closure#E#g#function::T x) → dynamic {
96 return "g(${x})"; 96 return "g(${x})";
97 } 97 }
98 static method closure#E#f#function(Vector #contextParameter) → dynamic { 98 static method closure#E#f#function(dynamic #contextParameter) → dynamic {
99 return "f"; 99 return "f";
100 } 100 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698