| OLD | NEW |
| (Empty) | |
| 1 library test; |
| 2 import self as self; |
| 3 import "dart:core" as core; |
| 4 |
| 5 static field core::Map<core::int, core::String> x1 = <core::int, core::String>{1
: "x", 2: "y"}; |
| 6 static field core::Map<core::num, core::Pattern> x2 = <core::num, core::Pattern>
{1: "x", 2: "y", 3.0: core::RegExp::•(".")}; |
| 7 static method test1() → dynamic { |
| 8 self::x1.{core::Map::[]=}(3, "z"); |
| 9 self::x1.{core::Map::[]=}("hi", "w"); |
| 10 self::x1.{core::Map::[]=}(4.0, "u"); |
| 11 self::x1.{core::Map::[]=}(3, 42); |
| 12 core::Map<core::num, core::String> y = self::x1; |
| 13 } |
| 14 static method test2() → dynamic { |
| 15 self::x2.{core::Map::[]=}(3, "z"); |
| 16 self::x2.{core::Map::[]=}("hi", "w"); |
| 17 self::x2.{core::Map::[]=}(4.0, "u"); |
| 18 self::x2.{core::Map::[]=}(3, 42); |
| 19 core::Pattern p = null; |
| 20 self::x2.{core::Map::[]=}(2, p); |
| 21 core::Map<core::int, core::String> y = self::x2; |
| 22 } |
| 23 static method main() → dynamic {} |
| OLD | NEW |