425e4dbe09
Closes #44455. Closes #34803. Closes #42434. Bug: https://github.com/dart-lang/sdk/issues/44455 Bug: https://github.com/dart-lang/sdk/issues/34803 Bug: https://github.com/dart-lang/sdk/issues/42434 Change-Id: I3be93b0d4a251de79c3bfe9829143f0fbec201ab Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/181402 Commit-Queue: Dmitry Stefantsov <dmitryas@google.com> Reviewed-by: Johnni Winther <johnniwinther@google.com>
19 lines
609 B
Plaintext
19 lines
609 B
Plaintext
library /*isNonNullableByDefault*/;
|
|
//
|
|
// Problems in library:
|
|
//
|
|
// pkg/front_end/testcases/nnbd/issue34803.dart:5:9: Error: Type variables can't have generic function types in their bounds.
|
|
// class A<X extends G<num>> {}
|
|
// ^
|
|
//
|
|
import self as self;
|
|
import "dart:core" as core;
|
|
|
|
typedef G<invariant X extends core::Object? = dynamic> = <Y extends X% = dynamic>() → void;
|
|
class A<X extends <Y extends core::num = dynamic>() → void = dynamic> extends core::Object {
|
|
synthetic constructor •() → self::A<self::A::X>
|
|
: super core::Object::•()
|
|
;
|
|
}
|
|
static method main() → dynamic {}
|