blob: 9fd371e5eee93fb252866f7c535cba246c10e301 [file] [log] [blame]
library;
//
// Problems in library:
//
// pkg/front_end/testcases/general_nnbd_opt_out/type_variable_as_super.dart:7:16: Error: The type variable 'T' can't be used as supertype.
// abstract class A<T> extends T {}
// ^
//
// pkg/front_end/testcases/general_nnbd_opt_out/type_variable_as_super.dart:9:16: Error: The type variable 'T' can't be used as supertype.
// abstract class B<T> extends T {
// ^
//
// pkg/front_end/testcases/general_nnbd_opt_out/type_variable_as_super.dart:13:7: Error: The type variable 'T' can't be used as supertype.
// class C<T> extends T {}
// ^
//
import self as self;
import "dart:core" as core;
abstract class A<T extends core::Object* = dynamic> extends core::Object {
synthetic constructor •() self::A<self::A::T*>*
;
}
abstract class B<T extends core::Object* = dynamic> extends core::Object {
constructor •() self::B<self::B::T*>*
;
}
class C<T extends core::Object* = dynamic> extends core::Object {
synthetic constructor •() self::C<self::C::T*>*
;
}
static method main() dynamic
;