| 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::Object> extends core::Object { | 5 class C<T extends core::Object> extends core::Object { |
| 6 field self::C::T t; | 6 field self::C::T t; |
| 7 constructor •(self::C::T t) → void | 7 constructor •(self::C::T t) → void |
| 8 : self::C::t = t, super core::Object::•() | 8 : self::C::t = t, super core::Object::•() |
| 9 ; | 9 ; |
| 10 } | 10 } |
| 11 static method main() → dynamic { | 11 static method main() → dynamic { |
| 12 self::C<core::int> x = new self::C::•<core::int>(42); | 12 self::C<core::int> x = new self::C::•<core::int>(42); |
| 13 core::num y; | 13 core::num y; |
| 14 self::C<core::int> c_int = new self::C::•<core::int>(y); | 14 self::C<core::int> c_int = new self::C::•<core::int>(y); |
| 15 self::C<core::num> c_num = new self::C::•<core::num>(123); | 15 self::C<core::num> c_num = new self::C::•<core::num>(123); |
| 16 self::C<core::num> c_num2 = let final self::C<core::num> #t1 = new self::C::•<
core::num>(456) in let final dynamic #t2 = #t1.t = 1.0 in #t1; | 16 self::C<core::num> c_num2 = let final self::C<core::num> #t1 = new self::C::•<
core::num>(456) in let final dynamic #t2 = #t1.{self::C::t} = 1.0 in #t1; |
| 17 self::C<dynamic> c_dynamic = new self::C::•<dynamic>(42); | 17 self::C<dynamic> c_dynamic = new self::C::•<dynamic>(42); |
| 18 x.t = "hello"; | 18 x.{self::C::t} = "hello"; |
| 19 } | 19 } |
| OLD | NEW |