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 C<T extends core::num> extends core::Object { | 5 class C<T extends core::num> extends core::Object { |
6 field self::C::T a = null; | 6 field self::C::T a = null; |
7 constructor •() → void | 7 constructor •() → void |
8 : super core::Object::•() | 8 : super core::Object::•() |
9 ; | 9 ; |
10 method op(core::int b) → void { | 10 method op(core::int b) → void { |
11 self::C::T r1 = this.a.+(b); | 11 self::C::T r1 = this.{self::C::a}.{core::num::+}(b); |
12 self::C::T r2 = this.a.-(b); | 12 self::C::T r2 = this.{self::C::a}.{core::num::-}(b); |
13 self::C::T r3 = this.a.*(b); | 13 self::C::T r3 = this.{self::C::a}.{core::num::*}(b); |
14 } | 14 } |
15 method opEq(core::int b) → void { | 15 method opEq(core::int b) → void { |
16 this.a = this.a.+(b); | 16 this.{self::C::a} = this.{self::C::a}.{core::num::+}(b); |
17 this.a = this.a.-(b); | 17 this.{self::C::a} = this.{self::C::a}.{core::num::-}(b); |
18 this.a = this.a.*(b); | 18 this.{self::C::a} = this.{self::C::a}.{core::num::*}(b); |
19 } | 19 } |
20 } | 20 } |
21 static method main() → dynamic {} | 21 static method main() → dynamic {} |
OLD | NEW |