| 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 typedef F<T extends core::Object> = (T) → void; | 5 typedef F<T extends core::Object> = (T) → void; |
| 6 typedef G<T extends core::Object, U extends core::Object> = (T) → U; |
| 6 class C<T extends core::Object> extends core::Object { | 7 class C<T extends core::Object> extends core::Object { |
| 7 default constructor •() → void | 8 default constructor •() → void |
| 8 : super core::Object::•() | 9 : super core::Object::•() |
| 9 ; | 10 ; |
| 10 method f(self::C::T x) → void {} | 11 method f1(self::C::T x) → void {} |
| 12 method f2(core::List<self::C::T> x) → void {} |
| 11 } | 13 } |
| 12 static method g1(self::C<core::num> c) → void { | 14 static method g1(self::C<core::num> c) → void { |
| 13 c.f; | 15 c.f1; |
| 14 } | 16 } |
| 15 static method g2(self::C<core::int> c, core::Object x) → void { | 17 static method g2(self::C<core::int> c, core::Object x) → void { |
| 16 (core::Object) → void f = self::g1(c) as (core::Object) → void; | 18 (core::Object) → void f = self::g1(c) as (core::Object) → void; |
| 17 f.call(x); | 19 f.call(x); |
| 18 } | 20 } |
| 21 static method g3(self::C<core::num> c) → (core::List<core::num>) → core::num { |
| 22 return c.f2; |
| 23 } |
| 19 static method test() → void { | 24 static method test() → void { |
| 20 dynamic x = self::g1(new self::C::•<core::int>()); | 25 dynamic x = self::g1(new self::C::•<core::int>()); |
| 21 x.call(1.5); | 26 x.call(1.5); |
| 27 self::g3(new self::C::•<core::int>()); |
| 22 } | 28 } |
| 23 static method main() → dynamic {} | 29 static method main() → dynamic {} |
| OLD | NEW |