| library test /*isNonNullableByDefault*/; |
| import self as self; |
| import "dart:core" as core; |
| |
| class C<T extends core::Object? = dynamic> extends core::Object { |
| synthetic constructor •() → self::C<self::C::T%> |
| : super core::Object::•() |
| ; |
| method f(covariant-by-class self::C::T? x) → void {} |
| } |
| static method g1(self::C<core::num> c) → void { |
| c.{self::C::f}(1.5){(core::num?) → void}; |
| } |
| static method g2(self::C<core::int> c) → void { |
| c.{self::C::f}(1){(core::int?) → void}; |
| } |
| static method g3(self::C<core::num> c) → void { |
| c.{self::C::f}(null){(core::num?) → void}; |
| } |
| static method main() → dynamic {} |