blob: 0edd50b141182ff63c53eaca21d33c8a1d45cf11 [file] [log] [blame]
library;
//
// Problems in library:
//
// pkg/front_end/testcases/extension_types/non_simple_co_inductive.dart:8:9: Error: Generic type 'A' can't be used without type arguments in the bounds of its own type variables.
// Try providing type arguments to 'A' here.
// class A<TypeX extends A> {}
// ^^^^^
//
// pkg/front_end/testcases/extension_types/non_simple_co_inductive.dart:10:13: Error: Generic type 'B' can't be used without type arguments in the bounds of its own type variables.
// Try providing type arguments to 'B' here.
// extension B<TypeX extends B> on int {}
// ^^^^^
//
// pkg/front_end/testcases/extension_types/non_simple_co_inductive.dart:12:9: Error: The typedef 'C' has a reference to itself.
// typedef C<TypeX extends C> = int;
// ^
//
import self as self;
import "dart:core" as core;
typedef C<unrelated TypeX extends invalid-type> = invalid-type;
class A<TypeX extends core::Object? = dynamic> extends core::Object {
synthetic constructor •() self::A<self::A::TypeX%>
: super core::Object::•()
;
}
extension B<TypeX extends core::Object? = dynamic> on core::int {
}
static method main() dynamic {}