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 Base extends core::Object { | 5 class Base extends core::Object { |
6 constructor •() → void | 6 default constructor •() → void |
7 : super core::Object::•() | 7 : super core::Object::•() |
8 ; | 8 ; |
9 } | 9 } |
10 class Mixin extends core::Object { | 10 class Mixin extends core::Object { |
11 constructor •() → void | 11 default constructor •() → void |
12 : super core::Object::•() | 12 : super core::Object::•() |
13 ; | 13 ; |
14 method foo() → dynamic | 14 method foo() → dynamic |
15 return core::print("foo"); | 15 return core::print("foo"); |
16 } | 16 } |
17 abstract class Base&Mixin = self::Base with self::Mixin { | 17 abstract class Base&Mixin = self::Base with self::Mixin { |
18 } | 18 } |
19 class Sub extends self::Base&Mixin { | 19 class Sub extends self::Base&Mixin { |
20 constructor •() → void | 20 default constructor •() → void |
21 : super self::Base::•() | 21 : super self::Base::•() |
22 ; | 22 ; |
23 } | 23 } |
24 static method main() → dynamic { | 24 static method main() → dynamic { |
25 new self::Sub::•().foo(); | 25 new self::Sub::•().foo(); |
26 } | 26 } |
OLD | NEW |