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 X extends core::Object { | 5 class X extends core::Object { |
6 constructor •() → void | 6 default constructor •() → void |
7 : super core::Object::•() | 7 : super core::Object::•() |
8 ; | 8 ; |
9 } | 9 } |
10 class Y extends core::Object { | 10 class Y extends core::Object { |
11 constructor •() → void | 11 default constructor •() → void |
12 : super core::Object::•() | 12 : super core::Object::•() |
13 ; | 13 ; |
14 } | 14 } |
15 class A extends core::Object { | 15 class A extends core::Object { |
16 field self::X x; | 16 field self::X x; |
17 field self::Y y; | 17 field self::Y y; |
18 constructor •(self::X x, self::Y y) → void | 18 constructor •(self::X x, self::Y y) → void |
19 : self::A::x = x, self::A::y = y, super core::Object::•() | 19 : self::A::x = x, self::A::y = y, super core::Object::•() |
20 ; | 20 ; |
21 } | 21 } |
22 class B extends self::A { | 22 class B extends self::A { |
23 constructor •(self::X x, self::Y y) → void | 23 constructor •(self::X x, self::Y y) → void |
24 : super self::A::•(x, y) {} | 24 : super self::A::•(x, y) {} |
25 } | 25 } |
26 static method main() → dynamic { | 26 static method main() → dynamic { |
27 self::B b = new self::B::•(new self::X::•(), new self::Y::•()); | 27 self::B b = new self::B::•(new self::X::•(), new self::Y::•()); |
28 } | 28 } |
OLD | NEW |