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