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 A extends core::Object { | 5 class A extends core::Object { |
6 field core::bool v1; | 6 field core::bool v1; |
7 field core::num v2; | 7 field core::num v2; |
8 constructor •(core::bool v1, core::num v2) → void | 8 constructor •(core::bool v1, core::num v2) → void |
9 : self::A::v1 = v1, self::A::v2 = v2, super core::Object::•() | 9 : self::A::v1 = v1, self::A::v2 = v2, super core::Object::•() |
10 ; | 10 ; |
11 } | 11 } |
12 class M1 extends core::Object { | 12 class M1 extends core::Object { |
13 field core::num v2 = 0; | 13 field core::num v2 = 0; |
14 constructor •() → void | 14 constructor •() → void |
15 : super core::Object::•() | 15 : super core::Object::•() |
16 ; | 16 ; |
17 } | 17 } |
18 class C extends self::A implements self::M1 { | 18 class C = self::A with self::M1 { |
19 field core::num v2 = 0; | |
20 constructor •(core::bool v1, core::num v2) → void | 19 constructor •(core::bool v1, core::num v2) → void |
21 : super self::A::•(v1, v2) | 20 : super self::A::•(v1, v2) |
22 ; | 21 ; |
23 } | 22 } |
24 static method main() → dynamic { | 23 static method main() → dynamic { |
25 self::C c = new self::C::•(true, 2); | 24 self::C c = new self::C::•(true, 2); |
26 } | 25 } |
OLD | NEW |