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