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 Mixin extends core::Object { | 5 class Mixin extends core::Object { |
6 field dynamic field = null; | 6 field dynamic field = null; |
7 constructor •() → void | 7 constructor •() → void |
8 : super core::Object::•() | 8 : super core::Object::•() |
9 ; | 9 ; |
10 method foo() → dynamic | 10 method foo() → dynamic |
11 return 87; | 11 return 87; |
12 } | 12 } |
| 13 abstract class Object&Mixin extends core::Object implements self::Mixin { |
| 14 field dynamic field = null; |
| 15 constructor •() → void |
| 16 : super core::Object::•() |
| 17 ; |
| 18 method foo() → dynamic |
| 19 return 87; |
| 20 } |
13 class Foo extends self::Object&Mixin { | 21 class Foo extends self::Object&Mixin { |
14 constructor •() → void | 22 constructor •() → void |
15 : super self::Object&Mixin::•() | 23 : super self::Object&Mixin::•() |
16 ; | 24 ; |
17 method foo() → dynamic | 25 method foo() → dynamic |
18 return this.{=self::Object&Mixin::foo}(); | 26 return this.{=self::Object&Mixin::foo}(); |
19 method bar() → dynamic | 27 method bar() → dynamic |
20 return this.{=self::Object&Mixin::field}; | 28 return this.{=self::Object&Mixin::field}; |
21 } | 29 } |
22 abstract class Object&Mixin extends core::Object implements self::Mixin { | |
23 field dynamic field = null; | |
24 constructor •() → void | |
25 : super core::Object::•() | |
26 ; | |
27 method foo() → dynamic | |
28 return 87; | |
29 } | |
30 static method main() → dynamic { | 30 static method main() → dynamic { |
31 dynamic f = new self::Foo::•(); | 31 dynamic f = new self::Foo::•(); |
32 f.field = 42; | 32 f.field = 42; |
33 core::print(f.bar()); | 33 core::print(f.bar()); |
34 } | 34 } |
OLD | NEW |