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