blob: 6428f44f16948a1010d192961bfe485bb36b139e [file] [log] [blame]
library /*isNonNullableByDefault*/;
//
// Problems in library:
//
// pkg/front_end/testcases/general/duplicate_typedef.dart:6:9: Error: 'F' is already declared in this scope.
// typedef F = void Function();
// ^
// pkg/front_end/testcases/general/duplicate_typedef.dart:5:9: Context: Previous declaration of 'F'.
// typedef F = void Function();
// ^
//
// pkg/front_end/testcases/general/duplicate_typedef.dart:9:9: Error: 'G' is already declared in this scope.
// typedef G<T> = void Function(T);
// ^
// pkg/front_end/testcases/general/duplicate_typedef.dart:8:9: Context: Previous declaration of 'G'.
// typedef G<T> = void Function(T);
// ^
//
import self as self;
import "dart:core" as core;
typedef F = () void;
typedef G<contravariant T extends core::Object? = dynamic> = (T%) void;
static method main() dynamic {}