blob: 8acce0b3ccc0808a76100cfd4b230f746ea7f64f [file] [log] [blame]
library /*isNonNullableByDefault*/;
import self as self;
import "dart:core" as core;
class A extends core::Object {
synthetic constructor •() self::A
: super core::Object::•()
;
method foo() dynamic
return null;
}
static method main() dynamic {
function bar<T extends self::A>(T t) void {
core::print("t.foo()=${t.{self::A::foo}(){() → dynamic}}");
}
bar<self::A>(new self::A::•()){(self::A) void};
(<S extends self::A>(S s) Null {
core::print("s.foo()=${s.{self::A::foo}(){() → dynamic}}");
})<self::A>(new self::A::•()){(self::A) Null};
}