blob: 3672b5f8acb0d012dc50ba04a713724ee8777ee9 [file] [log] [blame]
library;
//
// Problems in library:
//
// pkg/front_end/testcases/general/issue45330.dart:12:31: Error: Type 'T' can't use itself as a bound.
// Try breaking the cycle by removing at least one of the 'extends' clauses in the cycle.
// genericMethod<void Function<T extends T>()>();
// ^
//
// pkg/front_end/testcases/general/issue45330.dart:12:3: Error: A generic function type can't be used as a type argument.
// Try using a non-generic function type.
// genericMethod<void Function<T extends T>()>();
// ^
//
// pkg/front_end/testcases/general/issue45330_lib.dart:37:31: Error: Type 'T' can't use itself as a bound.
// Try breaking the cycle by removing at least one of the 'extends' clauses in the cycle.
// genericMethod<void Function<T extends T>()>();
// ^
//
// pkg/front_end/testcases/general/issue45330_lib.dart:37:3: Error: A generic function type can't be used as a type argument.
// Try using a non-generic function type.
// genericMethod<void Function<T extends T>()>();
// ^
//
import self as self;
import "dart:core" as core;
part issue45330_lib.dart;
static method genericMethod<T extends core::Object? = dynamic>() void {}
static method testInMain() dynamic {
self::genericMethod<<T extends invalid-type>() void>();
}
static method main() dynamic {}
static method /* from org-dartlang-testcase:///issue45330_lib.dart */ testInPart() dynamic {
self::genericMethod<<T extends invalid-type>() void>();
}