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 extends core::Object { | 5 class C extends core::Object { |
6 constructor •() → void | 6 constructor •() → void |
7 : super core::Object::•() | 7 : super core::Object::•() |
8 ; | 8 ; |
9 method m<T extends core::Object>(self::C::m::T x) → self::C::m::T | 9 method m<T extends core::Object>(self::C::m::T x) → self::C::m::T |
10 return x; | 10 return x; |
11 } | 11 } |
12 class D extends self::C { | 12 class D extends self::C { |
13 constructor •() → void | 13 constructor •() → void |
14 : super self::C::•() | 14 : super self::C::•() |
15 ; | 15 ; |
16 method m<S extends core::Object>(dynamic x) → dynamic | 16 method m<S extends core::Object>(self::D::m::S x) → self::D::m::S |
17 return x; | 17 return x; |
18 } | 18 } |
19 static method main() → dynamic { | 19 static method main() → dynamic { |
20 core::int y = new self::D::•().{self::D::m}<core::int>(42); | 20 core::int y = new self::D::•().{self::D::m}<core::int>(42); |
21 core::print(y); | 21 core::print(y); |
22 } | 22 } |
OLD | NEW |