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<<T extends core::Object>(dynamic) → dynamic, sel
f::C::T>(self::closure#C#v#function, MakeVector(1)); | 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::•() |
(...skipping 13 matching lines...) Expand all Loading... |
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<T extends core::Object>(Vector #contextParame
ter, dynamic x) → dynamic { | 34 static method closure#C#v#function<T extends core::Object>(dynamic #contextParam
eter, dynamic x) → dynamic { |
35 return x is self::closure#C#v#function::T; | 35 return x is self::closure#C#v#function::T; |
36 } | 36 } |
37 static method closure#C#y#function(Vector #contextParameter) → dynamic { | 37 static method closure#C#y#function(dynamic #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(dynamic #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(dynamic #contextParameter) → dynamic { |
44 return "x"; | 44 return "x"; |
45 } | 45 } |
OLD | NEW |