OLD | NEW |
(Empty) | |
| 1 library test; |
| 2 import self as self; |
| 3 import "dart:core" as core; |
| 4 |
| 5 typedef F<T extends core::Object> = (T) → void; |
| 6 class C<T extends core::Object> extends core::Object { |
| 7 default constructor •() → void |
| 8 : super core::Object::•() |
| 9 ; |
| 10 method f(self::C::T x) → void {} |
| 11 } |
| 12 static method g1(self::C<core::num> c) → void { |
| 13 c.f; |
| 14 } |
| 15 static method g2(self::C<core::int> c, core::Object x) → void { |
| 16 (core::Object) → void f = self::g1(c) as (core::Object) → void; |
| 17 f.call(x); |
| 18 } |
| 19 static method test() → void { |
| 20 dynamic x = self::g1(new self::C::•<core::int>()); |
| 21 x.call(1.5); |
| 22 } |
| 23 static method main() → dynamic {} |
OLD | NEW |