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