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