OLD | NEW |
| (Empty) |
1 library; | |
2 import self as self; | |
3 import "dart:core" as core; | |
4 | |
5 class Foo extends core::Object { | |
6 field dynamic/self::Bar! {other} _field = new self::Bar::•(); | |
7 constructor •() → void | |
8 : super core::Object::•() | |
9 ; | |
10 } | |
11 class Bar extends core::Object { | |
12 constructor •() → void | |
13 : super core::Object::•() | |
14 ; | |
15 } | |
16 static method useCallback(dynamic/core::Function* {other} callback) → dynamic/Nu
ll { | |
17 dynamic/self::Foo! {other} _ = callback.call(); | |
18 } | |
19 static method main() → dynamic/Null { | |
20 dynamic/self::Foo! {null,other} x; | |
21 function inner() → dynamic/self::Foo! {other} { | |
22 x = new self::Foo::•(); | |
23 return new self::Foo::•(); | |
24 } | |
25 self::useCallback(inner); | |
26 dynamic/self::Bar! {other} _ = inner.call()._field; | |
27 } | |
OLD | NEW |