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 constructor •(core::List<self::C::T> x) → void | 6 constructor •(core::List<self::C::T> x) → void |
7 : super core::Object::•() | 7 : super core::Object::•() |
8 ; | 8 ; |
9 } | 9 } |
10 static method main() → dynamic { | 10 static method main() → dynamic { |
11 core::bool b = false; | 11 core::bool b = false; |
12 core::List<core::int> l1 = <core::int>[1]; | 12 core::List<core::int> l1 = <core::int>[1]; |
13 core::List<core::int> l2 = <core::int>[2]; | 13 core::List<core::int> l2 = <core::int>[2]; |
14 self::C<core::int> x = new self::C::•<core::int>(l1); | 14 self::C<core::int> x = new self::C::•<core::int>(l1); |
15 self::C<core::int> y = new self::C::•<core::int>(l2); | 15 self::C<core::int> y = new self::C::•<core::int>(l2); |
16 self::C<core::int> z = new self::C::•<core::int>(b ? l1 : l2); | 16 self::C<core::int> z = new self::C::•<core::int>(b ?{core::List<core::int>} l1
: l2); |
17 } | 17 } |
OLD | NEW |