OLD | NEW |
| (Empty) |
1 library; | |
2 import self as self; | |
3 import "dart:core" as core; | |
4 | |
5 class B extends self::Object&M1&M2 { | |
6 constructor •(dynamic value) → void | |
7 : super self::Object&M1&M2::•() | |
8 ; | |
9 } | |
10 abstract class M1 extends core::Object { | |
11 constructor •() → void | |
12 : super core::Object::•() | |
13 ; | |
14 method m() → dynamic | |
15 return core::print("M1"); | |
16 } | |
17 abstract class M2 extends core::Object { | |
18 constructor •() → void | |
19 : super core::Object::•() | |
20 ; | |
21 method m() → dynamic | |
22 return core::print("M2"); | |
23 } | |
24 class C extends self::Object&M1&M2 { | |
25 constructor •(dynamic value) → void | |
26 : super self::Object&M1&M2::•() | |
27 ; | |
28 } | |
29 abstract class G1<T extends core::Object> extends core::Object { | |
30 constructor •() → void | |
31 : super core::Object::•() | |
32 ; | |
33 method m() → dynamic | |
34 return core::print(self::G1::T); | |
35 } | |
36 class D<S extends core::Object> extends self::D^G1<self::D::S> { | |
37 constructor •() → void | |
38 : super self::D^G1::•() | |
39 ; | |
40 } | |
41 abstract class Object&M1 extends core::Object implements self::M1 { | |
42 constructor •() → void | |
43 : super core::Object::•() | |
44 ; | |
45 method m() → dynamic | |
46 return core::print("M1"); | |
47 } | |
48 abstract class Object&M1&M2 extends self::Object&M1 implements self::M2 { | |
49 constructor •() → void | |
50 : super self::Object&M1::•() | |
51 ; | |
52 method m() → dynamic | |
53 return core::print("M2"); | |
54 } | |
55 abstract class D^G1<S extends core::Object> extends core::Object implements self
::G1<self::D^G1::S> { | |
56 constructor •() → void | |
57 : super core::Object::•() | |
58 ; | |
59 method m() → dynamic | |
60 return core::print(self::D^G1::S); | |
61 } | |
62 static method main() → dynamic { | |
63 new self::B::•(null).m(); | |
64 new self::C::•(null).m(); | |
65 new self::D::•<dynamic>().m(); | |
66 new self::D::•<core::int>().m(); | |
67 new self::D::•<core::List<core::int>>().m(); | |
68 } | |
OLD | NEW |