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