fdc765faad
TEST=existing Change-Id: I0a8fdf09f742b55357411f12dc6164d4050bb83c Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/196283 Commit-Queue: Johnni Winther <johnniwinther@google.com> Reviewed-by: Dmitry Stefantsov <dmitryas@google.com>
19 lines
469 B
Plaintext
19 lines
469 B
Plaintext
library /*isNonNullableByDefault*/;
|
|
import self as self;
|
|
import "dart:core" as core;
|
|
|
|
typedef Test<contravariant T extends self::X> = (T?) → dynamic;
|
|
class X extends core::Object {
|
|
synthetic constructor •() → self::X
|
|
: super core::Object::•()
|
|
;
|
|
}
|
|
static method checkme<T extends self::X>(self::checkme::T? t) → dynamic {}
|
|
static method main() → dynamic {
|
|
(self::X?) → dynamic t2 = #C1<self::X>;
|
|
}
|
|
|
|
constants {
|
|
#C1 = tearoff self::checkme
|
|
}
|