904882fce3
Closes #42435. Closes #45491. Closes #45493. Bug: https://github.com/dart-lang/sdk/issues/42435 Bug: https://github.com/dart-lang/sdk/issues/45491 Bug: https://github.com/dart-lang/sdk/issues/45493 Change-Id: I368aff553a8bdd5e5312ecf06f0d19c8390a0d22 Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/193662 Commit-Queue: Dmitry Stefantsov <dmitryas@google.com> Reviewed-by: Johnni Winther <johnniwinther@google.com>
23 lines
861 B
Plaintext
23 lines
861 B
Plaintext
library /*isNonNullableByDefault*/;
|
|
//
|
|
// Problems in library:
|
|
//
|
|
// pkg/front_end/testcases/general/issue42435_2.dart:3:27: Error: Generic type 'A' can't be used without type arguments in a type variable bound.
|
|
// Try providing type arguments to 'A' here.
|
|
// typedef AAlias = Function<X extends A>();
|
|
// ^
|
|
// pkg/front_end/testcases/general/issue42435_2.dart:1:9: Context: Bound of this variable references variable 'X' from the same declaration.
|
|
// class A<X extends A<X>> {}
|
|
// ^
|
|
//
|
|
import self as self;
|
|
import "dart:core" as core;
|
|
|
|
typedef AAlias = <X extends self::A<self::A<dynamic>> = dynamic>() → dynamic;
|
|
class A<X extends self::A<self::A::X> = self::A<dynamic>> extends core::Object {
|
|
synthetic constructor •() → self::A<self::A::X>
|
|
: super core::Object::•()
|
|
;
|
|
}
|
|
static method main() → dynamic {}
|