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 import "package:expect/expect.dart" as exp; | 4 import "package:expect/expect.dart" as exp; |
5 | 5 |
6 class A<N extends core::Object, S extends core::Object, U extends core::Object>
extends core::Object { | 6 class A<N extends core::Object, S extends core::Object, U extends core::Object>
extends core::Object { |
7 final field core::List<self::A::U> field; | 7 final field core::List<self::A::U> field; |
8 constructor •(self::A::N n, self::A::S s) → void | 8 constructor •(self::A::N n, self::A::S s) → void |
9 : self::A::field = core::List::_internal<self::A::U>(), super core::Object::
•() { | 9 : self::A::field = core::List::_internal<self::A::U>(), super core::Object::
•() { |
10 exp::Expect::isTrue(n is self::A::N); | 10 exp::Expect::isTrue(n is self::A::N); |
11 exp::Expect::isTrue(s is self::A::S); | 11 exp::Expect::isTrue(s is self::A::S); |
12 } | 12 } |
13 constructor empty() → void | 13 constructor empty() → void |
14 : self::A::field = null, super core::Object::•() {} | 14 : self::A::field = null, super core::Object::•() {} |
15 const constructor c(self::A::U u, self::A::S s) → void | 15 const constructor c(self::A::U u, self::A::S s) → void |
16 : self::A::field = const <dynamic>[null], super core::Object::•() | 16 : self::A::field = const <dynamic>[null], super core::Object::•() |
17 ; | 17 ; |
18 static factory f<N extends core::Object, S extends core::Object, U extends cor
e::Object>(self::A::f::S s) → self::A<self::A::f::N, self::A::f::S, self::A::f::
U> { | 18 static factory f<N extends core::Object, S extends core::Object, U extends cor
e::Object>(self::A::f::S s) → self::A<self::A::f::N, self::A::f::S, self::A::f::
U> { |
19 exp::Expect::isTrue(s is self::A::f::S); | 19 exp::Expect::isTrue(s is self::A::f::S); |
20 return new self::A::empty<dynamic, dynamic, dynamic>(); | 20 return new self::A::empty<dynamic, dynamic, dynamic>(); |
21 } | 21 } |
22 get getter() → core::List<self::A::U> { | 22 get getter() → core::List<self::A::U> { |
23 return this.field; | 23 return this.field; |
24 } | 24 } |
25 set setter(self::A::S s) → void {} | 25 set setter(self::A::S s) → void {} |
26 } | 26 } |
27 abstract class J<Aa extends core::Object, B extends core::Object> extends core::
Object { | 27 abstract class J<Aa extends core::Object, B extends core::Object> extends core::
Object { |
28 constructor •() → void | 28 default constructor •() → void |
29 : super core::Object::•() | 29 : super core::Object::•() |
30 ; | 30 ; |
31 } | 31 } |
32 abstract class I<H extends core::Object, C extends core::Object, K extends core:
:Object> extends self::J<self::I::C, self::I::K> { | 32 abstract class I<H extends core::Object, C extends core::Object, K extends core:
:Object> extends self::J<self::I::C, self::I::K> { |
33 constructor •() → void | 33 default constructor •() → void |
34 : super self::J::•() | 34 : super self::J::•() |
35 ; | 35 ; |
36 } | 36 } |
37 static method main() → dynamic { | 37 static method main() → dynamic { |
38 new self::A::•<core::num, core::double, core::List<dynamic>>(1, 2.0); | 38 new self::A::•<core::num, core::double, core::List<dynamic>>(1, 2.0); |
39 self::A<dynamic, dynamic, dynamic> a = self::A::f<core::int, core::int, core::
int>(1); | 39 self::A<dynamic, dynamic, dynamic> a = self::A::f<core::int, core::int, core::
int>(1); |
40 const self::A::c<core::int, core::int, core::List<dynamic>>(const <dynamic>[],
1); | 40 const self::A::c<core::int, core::int, core::List<dynamic>>(const <dynamic>[],
1); |
41 dynamic z = a.getter; | 41 dynamic z = a.getter; |
42 a.setter = 1; | 42 a.setter = 1; |
43 } | 43 } |
OLD | NEW |