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 } |
| 10 class B extends self::A { |
| 11 constructor •() → void |
| 12 : super self::A::•() |
| 13 ; |
| 14 operator +(self::C v) → self::A |
| 15 return null; |
| 16 operator -(core::int i) → self::B |
| 17 return null; |
| 18 operator *(self::B v) → self::B |
| 19 return null; |
| 20 operator &(self::A v) → self::C |
| 21 return null; |
| 22 } |
| 23 class C extends self::B { |
| 24 constructor •() → void |
| 25 : super self::B::•() |
| 26 ; |
| 27 } |
| 28 class Base extends core::Object { |
| 29 field self::B member = null; |
| 30 constructor •() → void |
| 31 : super core::Object::•() |
| 32 ; |
| 33 } |
| 34 class Test extends self::Base { |
| 35 constructor •() → void |
| 36 : super self::Base::•() |
| 37 ; |
| 38 method test() → void { |
| 39 this.{=self::Base::member} = self::f(); |
| 40 this.{=self::Base::member}.==(null) ? this.{=self::Base::member} = self::f()
: null; |
| 41 this.{=self::Base::member} = this.{=self::Base::member}.+(self::f()); |
| 42 this.{=self::Base::member} = this.{=self::Base::member}.*(self::f()); |
| 43 this.{=self::Base::member} = this.{=self::Base::member}.&(self::f()); |
| 44 this.{=self::Base::member} = this.{=self::Base::member}.-(1); |
| 45 this.{=self::Base::member} = this.{=self::Base::member}.-(1); |
| 46 dynamic v1 = this.{=self::Base::member} = self::f(); |
| 47 dynamic v2 = let final dynamic #t1 = this.{=self::Base::member} in #t1.==(nu
ll) ? this.{=self::Base::member} = self::f() : #t1; |
| 48 dynamic v3 = this.{=self::Base::member} = this.{=self::Base::member}.+(self:
:f()); |
| 49 dynamic v4 = this.{=self::Base::member} = this.{=self::Base::member}.*(self:
:f()); |
| 50 dynamic v5 = this.{=self::Base::member} = this.{=self::Base::member}.&(self:
:f()); |
| 51 dynamic v6 = this.{=self::Base::member} = this.{=self::Base::member}.-(1); |
| 52 dynamic v7 = let final dynamic #t2 = this.{=self::Base::member} in let final
dynamic #t3 = this.{=self::Base::member} = #t2.-(1) in #t2; |
| 53 } |
| 54 } |
| 55 static method f() → dynamic |
| 56 return null; |
| 57 static method main() → dynamic {} |
OLD | NEW |