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 constructor •() → void |
| 7 : super core::Object::•() |
| 8 ; |
| 9 method call() → core::int |
| 10 return 0; |
| 11 } |
| 12 class B extends core::Object { |
| 13 constructor •() → void |
| 14 : super core::Object::•() |
| 15 ; |
| 16 get call() → self::A |
| 17 return new self::A::•(); |
| 18 } |
| 19 class D extends core::Object { |
| 20 field self::A fieldA = new self::A::•(); |
| 21 field self::B fieldB = new self::B::•(); |
| 22 constructor •() → void |
| 23 : super core::Object::•() |
| 24 ; |
| 25 get getA() → self::A |
| 26 return new self::A::•(); |
| 27 get getB() → self::B |
| 28 return new self::B::•(); |
| 29 } |
| 30 static method main() → dynamic { |
| 31 core::int callA = new self::A::•().{self::A::call}(); |
| 32 dynamic callB = new self::B::•().{self::B::call}(); |
| 33 core::int callFieldA = new self::D::•().fieldA(); |
| 34 core::int callGetA = new self::D::•().{self::D::getA}(); |
| 35 dynamic callFieldB = new self::D::•().fieldB(); |
| 36 dynamic callGetB = new self::D::•().{self::D::getB}(); |
| 37 } |
OLD | NEW |