OLD | NEW |
| (Empty) |
1 library; | |
2 import self as self; | |
3 import "dart:core" as core; | |
4 | |
5 abstract class Base extends core::Object { | |
6 constructor •() → void | |
7 : super core::Object::•() | |
8 ; | |
9 } | |
10 class Foo extends self::Base { | |
11 constructor •() → void | |
12 : super self::Base::•() | |
13 ; | |
14 } | |
15 class Bar extends self::Base { | |
16 constructor •() → void | |
17 : super self::Base::•() | |
18 ; | |
19 } | |
20 class Baz extends self::Base { | |
21 constructor •() → void | |
22 : super self::Base::•() | |
23 ; | |
24 } | |
25 static method foo(dynamic x) → void {} | |
26 static method bar(dynamic x) → void {} | |
27 static method foo_escaped(dynamic x) → void {} | |
28 static method bar_escaped(dynamic x) → void {} | |
29 static method escape(dynamic fn) → void { | |
30 fn.call(new self::Baz::•()); | |
31 } | |
32 static method main() → dynamic { | |
33 self::foo(new self::Foo::•()); | |
34 self::bar(new self::Bar::•()); | |
35 self::escape(self::foo_escaped); | |
36 self::escape(self::bar_escaped); | |
37 } | |
OLD | NEW |