OLD | NEW |
| (Empty) |
1 library; | |
2 import self as self; | |
3 import "dart:core" as core; | |
4 | |
5 class Mixin extends core::Object { | |
6 field dynamic field = null; | |
7 constructor •() → void | |
8 : super core::Object::•() | |
9 ; | |
10 method foo() → dynamic | |
11 return 87; | |
12 } | |
13 class Foo extends self::Object&Mixin { | |
14 constructor •() → void | |
15 : super self::Object&Mixin::•() | |
16 ; | |
17 method foo() → dynamic | |
18 return this.{=self::Object&Mixin::foo}(); | |
19 method bar() → dynamic | |
20 return this.{=self::Object&Mixin::field}; | |
21 } | |
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 { | |
31 dynamic f = new self::Foo::•(); | |
32 f.field = 42; | |
33 core::print(f.bar()); | |
34 } | |
OLD | NEW |