OLD | NEW |
1 library test; | 1 library test; |
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 Clonable<T extends core::Object> extends core::Object { | 5 class Clonable<T extends core::Object> extends core::Object { |
6 constructor •() → void | 6 default constructor •() → void |
7 : super core::Object::•() | 7 : super core::Object::•() |
8 ; | 8 ; |
9 } | 9 } |
10 class Pair<T extends self::Clonable<self::Pair::T>, U extends self::Clonable<sel
f::Pair::U>> extends core::Object { | 10 class Pair<T extends self::Clonable<self::Pair::T>, U extends self::Clonable<sel
f::Pair::U>> extends core::Object { |
11 field self::Pair::T t; | 11 field self::Pair::T t; |
12 field self::Pair::U u; | 12 field self::Pair::U u; |
13 constructor •(self::Pair::T t, self::Pair::U u) → void | 13 constructor •(self::Pair::T t, self::Pair::U u) → void |
14 : self::Pair::t = t, self::Pair::u = u, super core::Object::•() | 14 : self::Pair::t = t, self::Pair::u = u, super core::Object::•() |
15 ; | 15 ; |
16 constructor _() → void | 16 constructor _() → void |
17 : self::Pair::u = null, self::Pair::t = null, super core::Object::•() | 17 : self::Pair::u = null, self::Pair::t = null, super core::Object::•() |
18 ; | 18 ; |
19 get reversed() → self::Pair<self::Pair::U, self::Pair::T> | 19 get reversed() → self::Pair<self::Pair::U, self::Pair::T> |
20 return new self::Pair::•<self::Pair::U, self::Pair::T>(this.{self::Pair::u},
this.{self::Pair::t}); | 20 return new self::Pair::•<self::Pair::U, self::Pair::T>(this.{self::Pair::u},
this.{self::Pair::t}); |
21 } | 21 } |
22 static method main() → dynamic { | 22 static method main() → dynamic { |
23 final self::Pair<self::Clonable<dynamic>, self::Clonable<dynamic>> x = new sel
f::Pair::_<self::Clonable<dynamic>, self::Clonable<dynamic>>(); | 23 final self::Pair<self::Clonable<dynamic>, self::Clonable<dynamic>> x = new sel
f::Pair::_<self::Clonable<dynamic>, self::Clonable<dynamic>>(); |
24 } | 24 } |
OLD | NEW |