7831716efd
Closes #42579, #42580. Bug: https://github.com/dart-lang/sdk/issues/42579 Bug: https://github.com/dart-lang/sdk/issues/42580 Change-Id: I90a519b4d580d139bbccfcefd8553ec68aac71ce Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/156240 Commit-Queue: Dmitry Stefantsov <dmitryas@google.com> Reviewed-by: Johnni Winther <johnniwinther@google.com>
16 lines
576 B
Plaintext
16 lines
576 B
Plaintext
library /*isNonNullableByDefault*/;
|
|
import self as self;
|
|
import "dart:core" as core;
|
|
|
|
class A<T extends core::Object? = dynamic> extends core::Object {
|
|
synthetic constructor •() → self::A<self::A::T%>
|
|
: super core::Object::•()
|
|
;
|
|
}
|
|
static method foo<S extends core::Object? = dynamic>() → self::foo::S%
|
|
return throw "foo";
|
|
static method bar<R extends core::Object? = dynamic>(self::A<self::bar::R%> a) → dynamic {}
|
|
static method baz() → dynamic
|
|
return self::bar<core::Object?>(self::foo<self::A<core::Object?>>());
|
|
static method main() → dynamic {}
|