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 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 constructor •() → void |
17 : super core::Object::•() | 17 : super core::Object::•() |
18 ; | 18 ; |
19 } | 19 } |
20 const field dynamic #errors = const <dynamic>["pkg/front_end/testcases/type_vari
able_as_super.dart: Error: The type variable 'T' can't be used as supertype.", "
pkg/front_end/testcases/type_variable_as_super.dart: Error: The type variable 'T
' can't be used as supertype.", "pkg/front_end/testcases/type_variable_as_super.
dart: Error: The type variable 'T' can't be used as supertype."]/* from null */; | |
21 static method main() → dynamic { | 20 static method main() → dynamic { |
22 throw new core::AbstractClassInstantiationError::•("A"); | 21 throw new core::NoSuchMethodError::•(null, #A, <dynamic>[], <dynamic, dynamic>
{}, null); |
23 throw new core::AbstractClassInstantiationError::•("B"); | 22 throw new core::NoSuchMethodError::•(null, #B, <dynamic>[], <dynamic, dynamic>
{}, null); |
24 new self::C::•<dynamic>(); | 23 new self::C::•<dynamic>(); |
25 } | 24 } |
OLD | NEW |