OLD | NEW |
1 library; | 1 library; |
2 import self as self; | 2 import self as self; |
3 import "dart:core" as core; | 3 import "dart:core" as core; |
4 | 4 |
5 class C extends core::Object { | 5 class C extends core::Object { |
6 constructor •() → void | 6 constructor •() → void |
7 : super core::Object::•() | 7 : super core::Object::•() |
8 ; | 8 ; |
9 method m() → dynamic { | 9 method m() → dynamic { |
10 core::print("Called m"); | 10 core::print("Called m"); |
11 } | 11 } |
12 method testC() → dynamic { | 12 method testC() → dynamic { |
13 this.m(); | 13 this.m(); |
14 } | 14 } |
15 } | 15 } |
16 class D extends self::C { | 16 class D extends self::C { |
17 constructor •() → void | 17 constructor •() → void |
18 : super self::C::•() | 18 : super self::C::•() |
19 ; | 19 ; |
20 method testD() → dynamic { | 20 method testD() → dynamic { |
21 this.m(); | 21 this.m(); |
22 } | 22 } |
23 } | 23 } |
24 static method main() → dynamic { | 24 static method main() → dynamic { |
25 new self::C::•().testC(); | 25 new self::C::•().testC(); |
26 new self::D::•().testD(); | 26 new self::D::•().testD(); |
27 } | 27 } |
OLD | NEW |