OLD | NEW |
| (Empty) |
1 library; | |
2 import self as self; | |
3 import "dart:core" as core; | |
4 | |
5 class C1 extends core::Object { | |
6 constructor •() → self::C1 | |
7 : super core::Object::•(); | |
8 } | |
9 class C2 extends core::Object { | |
10 constructor •() → self::C2 | |
11 : super core::Object::•(); | |
12 } | |
13 class C3 extends core::Object { | |
14 constructor •() → self::C3 | |
15 : super core::Object::•(); | |
16 } | |
17 class A<T extends core::Object> extends core::Object { | |
18 constructor internal() → dynamic | |
19 : super core::Object::•() | |
20 ; | |
21 static factory a<T extends core::Object>() → self::A<self::A::a::T> | |
22 invalid-statement; | |
23 static factory b<T extends core::Object>() → self::A<self::A::b::T> | |
24 invalid-statement; | |
25 static factory c<T extends core::Object>() → self::A<self::A::c::T> | |
26 invalid-statement; | |
27 } | |
28 class B<S extends core::Object> extends self::A<self::B::S> { | |
29 constructor internal() → dynamic | |
30 : super self::A::internal() | |
31 ; | |
32 static factory a<S extends core::Object>() → self::B<self::B::a::S> | |
33 invalid-statement; | |
34 static factory b<S extends core::Object>() → self::B<self::B::b::S> | |
35 invalid-statement; | |
36 } | |
37 class C<U extends core::Object> extends self::B<self::C::U> { | |
38 constructor •() → dynamic | |
39 : super self::B::internal() | |
40 ; | |
41 } | |
42 static method main() → dynamic { | |
43 new self::C::•<self::C3>(); | |
44 new self::C::•<self::C1>(); | |
45 new self::C::•<self::C3>(); | |
46 new self::C::•<self::C2>(); | |
47 invalid-expression.call(); | |
48 } | |
OLD | NEW |