OLD | NEW |
(Empty) | |
| 1 library test; |
| 2 import self as self; |
| 3 import "dart:core" as core; |
| 4 |
| 5 abstract class I1 extends core::Object { |
| 6 default constructor •() → void |
| 7 : super core::Object::•() |
| 8 ; |
| 9 abstract method f(core::int i) → void; |
| 10 } |
| 11 abstract class I2 extends core::Object { |
| 12 default constructor •() → void |
| 13 : super core::Object::•() |
| 14 ; |
| 15 abstract method f(core::Object o) → void; |
| 16 } |
| 17 abstract class C extends core::Object implements self::I1, self::I2 { |
| 18 default constructor •() → void |
| 19 : super core::Object::•() |
| 20 ; |
| 21 } |
| 22 class D extends self::C { |
| 23 default constructor •() → void |
| 24 : super self::C::•() |
| 25 ; |
| 26 method f(core::Object o) → void {} |
| 27 } |
| 28 abstract class E extends core::Object implements self::I2, self::I1 { |
| 29 default constructor •() → void |
| 30 : super core::Object::•() |
| 31 ; |
| 32 } |
| 33 class F extends self::E { |
| 34 default constructor •() → void |
| 35 : super self::E::•() |
| 36 ; |
| 37 method f(core::Object o) → void {} |
| 38 } |
| 39 static method g1(self::C c) → void { |
| 40 c.f("hi"); |
| 41 } |
| 42 static method g2(self::E e) → void { |
| 43 e.f("hi"); |
| 44 } |
| 45 static method main() → dynamic { |
| 46 self::g1(new self::D::•()); |
| 47 self::g2(new self::F::•()); |
| 48 } |
OLD | NEW |