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

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

Issue 2935223003: Update expectations for closure conversion tests (Closed)
Patch Set: Created 3 years, 6 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<(dynamic) → dynamic>(self::closure#C#v#function, null); 6 field dynamic v = MakeClosure<(dynamic) → core::bool>(self::closure#C#v#functi on, null);
7 final field dynamic y = MakeClosure<() → dynamic>(self::closure#C#y#function, null); 7 final field dynamic y = MakeClosure<() → core::String>(self::closure#C#y#funct ion, null);
8 static final field dynamic z = MakeClosure<() → dynamic>(self::closure#C#z#fun ction, null); 8 static final field dynamic z = MakeClosure<() → core::String>(self::closure#C# z#function, null);
9 constructor •() → void 9 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<() → core::String>(self::closure#x#function , null);
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";
17 if(new self::C::•<core::String>().v(0)) 17 if(new self::C::•<core::String>().v(0))
18 throw "C<String>.v true on int"; 18 throw "C<String>.v true on int";
19 if(new self::C::•<core::String>().v(null)) 19 if(new self::C::•<core::String>().v(null))
20 throw "C<String>.v true on null"; 20 throw "C<String>.v true on null";
21 if(new self::C::•<core::int>().v("")) 21 if(new self::C::•<core::int>().v(""))
22 throw "C<int>.v true on String"; 22 throw "C<int>.v true on String";
23 if(!new self::C::•<core::int>().v(0)) 23 if(!new self::C::•<core::int>().v(0))
24 throw "C<int>.v false on int"; 24 throw "C<int>.v false on int";
25 if(new self::C::•<core::int>().v(null)) 25 if(new self::C::•<core::int>().v(null))
26 throw "C<int>.v true on null"; 26 throw "C<int>.v true on null";
27 if(!"x".==(self::x.call())) 27 if(!"x".==(self::x.call()))
28 throw "x"; 28 throw "x";
29 if(!"y".==(new self::C::•<core::String>().y())) 29 if(!"y".==(new self::C::•<core::String>().y()))
30 throw "y"; 30 throw "y";
31 if(!"z".==(self::C::z.call())) 31 if(!"z".==(self::C::z.call()))
32 throw "z"; 32 throw "z";
33 } 33 }
34 static method closure#C#v#function(Vector #contextParameter, dynamic x) → dynami c { 34 static method closure#C#v#function(Vector #contextParameter, dynamic x) → core:: bool {
35 return x is dynamic; 35 return x is dynamic;
36 } 36 }
37 static method closure#C#y#function(Vector #contextParameter) → dynamic { 37 static method closure#C#y#function(Vector #contextParameter) → core::String {
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) → core::String {
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) → core::String {
44 return "x"; 44 return "x";
45 } 45 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698