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 abstract class A<T extends core::Object> extends core::Object { | 5 abstract class A<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 abstract class B<T extends core::Object> extends core::Object { | 10 abstract class B<T extends core::Object> extends core::Object { |
11 constructor •() → void | 11 constructor •() → void |
12 : super core::Object::•() | 12 : super core::Object::•() |
13 ; | 13 ; |
14 } | 14 } |
15 class C<T extends core::Object> extends core::Object { | 15 class C<T extends core::Object> extends core::Object { |
16 constructor •() → void | 16 default constructor •() → void |
17 : super core::Object::•() | 17 : super core::Object::•() |
18 ; | 18 ; |
19 } | 19 } |
| 20 const field dynamic #errors = const <dynamic>["Error: The type variable 'T' can'
t be used as supertype.", "Error: The type variable 'T' can't be used as superty
pe.", "Error: The type variable 'T' can't be used as supertype."]/* from null */
; |
20 static method main() → dynamic { | 21 static method main() → dynamic { |
21 throw new core::NoSuchMethodError::•(null, #A, <dynamic>[], <dynamic, dynamic>
{}, null); | 22 throw new core::AbstractClassInstantiationError::•("A"); |
22 throw new core::NoSuchMethodError::•(null, #B, <dynamic>[], <dynamic, dynamic>
{}, null); | 23 throw new core::AbstractClassInstantiationError::•("B"); |
23 new self::C::•<dynamic>(); | 24 new self::C::•<dynamic>(); |
24 } | 25 } |
OLD | NEW |