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 static method main() → dynamic { | 11 static method main() → dynamic { |
12 self::A a = new self::A::•(); | 12 self::A a = new self::A::•(); |
13 self::A b = a; | 13 self::A b = a; |
14 core::print(a.{self::A::x}); | 14 core::print(a.{self::A::x}); |
15 core::print(a.{self::A::x}.{core::num::+}(2)); | 15 core::print(a.{self::A::x}.{core::num::+}(2)); |
16 } | 16 } |
OLD | NEW |