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 static method test1() → dynamic { | 5 static method test1() → dynamic { |
6 core::List<core::int> x = <core::int>[1, 2, 3]; | 6 core::List<core::int> x = <core::int>[1, 2, 3]; |
7 x.add("hi"); | 7 x.{core::List::add}("hi"); |
8 x.add(4.0); | 8 x.{core::List::add}(4.0); |
9 x.add(4); | 9 x.{core::List::add}(4); |
10 core::List<core::num> y = x; | 10 core::List<core::num> y = x; |
11 } | 11 } |
12 static method test2() → dynamic { | 12 static method test2() → dynamic { |
13 core::List<core::num> x = <core::num>[1, 2.0, 3]; | 13 core::List<core::num> x = <core::num>[1, 2.0, 3]; |
14 x.add("hi"); | 14 x.{core::List::add}("hi"); |
15 x.add(4.0); | 15 x.{core::List::add}(4.0); |
16 core::List<core::int> y = x; | 16 core::List<core::int> y = x; |
17 } | 17 } |
18 static method main() → dynamic { | 18 static method main() → dynamic { |
19 self::test1(); | 19 self::test1(); |
20 self::test2(); | 20 self::test2(); |
21 } | 21 } |
OLD | NEW |