| OLD | NEW |
| 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) → core::bool>(self::closure#C#v#functi
on, null); | 6 field dynamic v = MakeClosure<(dynamic) → dynamic>(self::closure#C#v#function,
null); |
| 7 final field dynamic y = MakeClosure<() → core::String>(self::closure#C#y#funct
ion, null); | 7 final field dynamic y = MakeClosure<() → dynamic>(self::closure#C#y#function,
null); |
| 8 static final field dynamic z = MakeClosure<() → core::String>(self::closure#C#
z#function, null); | 8 static final field dynamic z = MakeClosure<() → dynamic>(self::closure#C#z#fun
ction, null); |
| 9 constructor •() → void | 9 default constructor •() → void |
| 10 : super core::Object::•() | 10 : super core::Object::•() |
| 11 ; | 11 ; |
| 12 } | 12 } |
| 13 static field dynamic x = MakeClosure<() → core::String>(self::closure#x#function
, null); | 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"; |
| 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) → core::
bool { | 34 static method closure#C#v#function(Vector #contextParameter, dynamic x) → dynami
c { |
| 35 return x is dynamic; | 35 return x is dynamic; |
| 36 } | 36 } |
| 37 static method closure#C#y#function(Vector #contextParameter) → core::String { | 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) → core::String { | 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) → core::String { | 43 static method closure#x#function(Vector #contextParameter) → dynamic { |
| 44 return "x"; | 44 return "x"; |
| 45 } | 45 } |
| OLD | NEW |