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 _field = null; | |
7 constructor •() → void | |
8 : super core::Object::•() | |
9 ; | |
10 } | |
11 class FooValue extends core::Object { | |
12 constructor •() → void | |
13 : super core::Object::•() | |
14 ; | |
15 } | |
16 class Bar extends core::Object { | |
17 field dynamic _field = null; | |
18 constructor •() → void | |
19 : super core::Object::•() | |
20 ; | |
21 } | |
22 class BarValue extends core::Object { | |
23 constructor •() → void | |
24 : super core::Object::•() | |
25 ; | |
26 } | |
27 static method main() → dynamic { | |
28 self::Foo foo = new self::Foo::•(); | |
29 foo.{self::Foo::_field} = new self::FooValue::•(); | |
30 dynamic fooValue = foo.{self::Foo::_field}; | |
31 core::print(fooValue); | |
32 self::Bar bar = new self::Bar::•(); | |
33 bar.{self::Bar::_field} = new self::BarValue::•(); | |
34 dynamic barValue = bar.{self::Bar::_field}; | |
35 core::print(barValue); | |
36 } | |
OLD | NEW |