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 = 2; | 6 field core::int x = 2; |
7 constructor •() → void | 7 default constructor •() → void |
8 : super core::Object::•() | 8 : super core::Object::•() |
9 ; | 9 ; |
10 } | 10 } |
11 class B extends self::A { | 11 class B extends self::A { |
12 constructor •() → void | 12 default constructor •() → void |
13 : super self::A::•() | 13 : super self::A::•() |
14 ; | 14 ; |
15 get x() → core::int | 15 get x() → core::int |
16 return 3; | 16 return 3; |
17 } | 17 } |
18 static method foo() → dynamic { | 18 static method foo() → dynamic { |
19 core::String y = new self::B::•().{self::B::x}; | 19 core::String y = new self::B::•().{self::B::x}; |
20 core::int z = new self::B::•().{self::B::x}; | 20 core::int z = new self::B::•().{self::B::x}; |
21 } | 21 } |
22 static method main() → dynamic { | 22 static method main() → dynamic { |
23 self::foo(); | 23 self::foo(); |
24 } | 24 } |
OLD | NEW |