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
753 B
Plaintext
19 lines
753 B
Plaintext
library /*isNonNullableByDefault*/;
|
|
import self as self;
|
|
import "dart:core" as core;
|
|
|
|
class Foo<S extends core::num> extends core::Object {
|
|
synthetic constructor •() → self::Foo<self::Foo::S>
|
|
: super core::Object::•()
|
|
;
|
|
method test1(generic-covariant-impl self::Foo::S x) → void {
|
|
(self::Foo::S) → self::Foo::S f = self::Test|get#test<self::Foo::S>(x);
|
|
}
|
|
}
|
|
extension Test<T extends core::Object? = dynamic> on T% {
|
|
get test = self::Test|get#test;
|
|
}
|
|
static method Test|get#test<T extends core::Object? = dynamic>(lowered final self::Test|get#test::T% #this) → (self::Test|get#test::T%) → self::Test|get#test::T%
|
|
return (self::Test|get#test::T% a) → self::Test|get#test::T% => #this;
|
|
static method main() → void {}
|