OLD | NEW |
(Empty) | |
| 1 library test; |
| 2 import self as self; |
| 3 import "dart:core" as core; |
| 4 |
| 5 abstract class I<T extends core::Object> extends core::Object { |
| 6 default constructor •() → void |
| 7 : super core::Object::•() |
| 8 ; |
| 9 abstract method f1(self::I::T x) → void; |
| 10 abstract method f2(self::I::T x) → void; |
| 11 } |
| 12 class C<U extends core::Object> extends core::Object implements self::I<core::in
t> { |
| 13 default constructor •() → void |
| 14 : super core::Object::•() |
| 15 ; |
| 16 method f1(core::int x) → void {} |
| 17 method f2(core::int x, [self::C::U y = null]) → void {} |
| 18 } |
| 19 static method g1(self::C<core::num> c) → void { |
| 20 c.f1(1); |
| 21 } |
| 22 static method g2(self::I<core::num> i) → void { |
| 23 i.f1(1.5); |
| 24 } |
| 25 static method g3(self::C<core::num> c) → void { |
| 26 c.f2(1, 1.5); |
| 27 } |
| 28 static method test() → void { |
| 29 self::g2(new self::C::•<core::num>()); |
| 30 } |
| 31 static method main() → void {} |
OLD | NEW |