blob: 920abff4b81de836662962ea3b9939aa96d5a2ce [file] [log] [blame]
library;
//
// Problems in library:
//
// pkg/front_end/testcases/instantiate_to_bound/non_simple_co_inductive_for_each.dart:8:7: 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, TypeY extends A> {}
// ^
//
// pkg/front_end/testcases/instantiate_to_bound/non_simple_co_inductive_for_each.dart:10:9: Error: The typedef 'C' has a reference to itself.
// typedef C<TypeX extends C, TypeY extends C> = int;
// ^
//
import self as self;
import "dart:core" as core;
typedef C<unrelated TypeX extends invalid-type, unrelated TypeY extends invalid-type> = invalid-type;
class A<TypeX extends core::Object? = dynamic, TypeY extends core::Object? = dynamic> extends core::Object {
synthetic constructor •() self::A<self::A::TypeX%, self::A::TypeY%>
: super core::Object::•()
;
}
static method main() dynamic {}