OLD | NEW |
1 library test; | 1 library test; |
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 A extends core::Object { | 5 class A extends core::Object { |
6 field core::int x = 42; | 6 field core::int x = 42; |
7 constructor •() → void | 7 default constructor •() → void |
8 : super core::Object::•() | 8 : super core::Object::•() |
9 ; | 9 ; |
10 } | 10 } |
11 class B extends core::Object { | 11 class B extends core::Object { |
12 field self::A a = new self::A::•(); | 12 field self::A a = new self::A::•(); |
13 constructor •() → void | 13 default constructor •() → void |
14 : super core::Object::•() | 14 : super core::Object::•() |
15 ; | 15 ; |
16 } | 16 } |
17 class C extends core::Object { | 17 class C extends core::Object { |
18 field self::B b = new self::B::•(); | 18 field self::B b = new self::B::•(); |
19 constructor •() → void | 19 default constructor •() → void |
20 : super core::Object::•() | 20 : super core::Object::•() |
21 ; | 21 ; |
22 } | 22 } |
23 class D extends core::Object { | 23 class D extends core::Object { |
24 field self::C c = new self::C::•(); | 24 field self::C c = new self::C::•(); |
25 constructor •() → void | 25 default constructor •() → void |
26 : super core::Object::•() | 26 : super core::Object::•() |
27 ; | 27 ; |
28 } | 28 } |
29 static method main() → void { | 29 static method main() → void { |
30 self::D d1 = new self::D::•(); | 30 self::D d1 = new self::D::•(); |
31 core::print(d1.{self::D::c}.{self::C::b}.{self::B::a}.{self::A::x}); | 31 core::print(d1.{self::D::c}.{self::C::b}.{self::B::a}.{self::A::x}); |
32 self::D d2 = new self::D::•(); | 32 self::D d2 = new self::D::•(); |
33 core::print(d2.{self::D::c}.{self::C::b}.{self::B::a}.{self::A::x}); | 33 core::print(d2.{self::D::c}.{self::C::b}.{self::B::a}.{self::A::x}); |
34 } | 34 } |
OLD | NEW |