blob: 9d2b0e0fca5c35ae33cd3db4163c748b559c6321 [file] [log] [blame]
library test /*isNonNullableByDefault*/;
import self as self;
import "dart:core" as core;
class B extends core::Object {
synthetic constructor •() self::B
: super core::Object::•()
;
method f(core::int x) void {}
}
abstract class I<T extends core::Object? = dynamic> extends core::Object {
synthetic constructor •() self::I<self::I::T%>
: super core::Object::•()
;
abstract method f(covariant-by-class self::I::T% x) void;
}
class M extends core::Object {
synthetic constructor •() self::M
: super core::Object::•()
;
method f(core::int x) void {}
}
class C extends self::B implements self::I<core::int>, self::M /*isEliminatedMixin*/ {
synthetic constructor •() self::C
: super self::B::•()
;
method f(covariant-by-class core::int x) void {}
}
static method g1(self::C c) void {
c.{self::C::f}(1){(core::int) void};
}
static method g2(self::I<core::num> i) void {
i.{self::I::f}(1.5){(core::num) void};
}
static method test() void {
self::g2(new self::C::•());
}
static method main() void {}