| OLD | NEW |
| (Empty) |
| 1 library; | |
| 2 import self as self; | |
| 3 import "dart:core" as core; | |
| 4 | |
| 5 static method main() → dynamic { | |
| 6 core::int i = 0; | |
| 7 core::print(i.==(1) ? "bad" : "good"); | |
| 8 core::print("${i}"); | |
| 9 core::print("'${i}'"); | |
| 10 core::print(" '${i}' "); | |
| 11 core::print(" '${i}' '${i}'"); | |
| 12 core::print(" '${i}' '${i}'"); | |
| 13 core::print("foobar"); | |
| 14 core::print(" '${i}' '${i}' '${i}' '${i}'"); | |
| 15 try { | |
| 16 throw "fisk"; | |
| 17 } | |
| 18 on core::String catch(dynamic e, dynamic s) { | |
| 19 core::print(e); | |
| 20 if(!s.==(null)) | |
| 21 core::print(s); | |
| 22 } | |
| 23 for (; false; ) { | |
| 24 } | |
| 25 dynamic list = <dynamic>["Hello, World!"]; | |
| 26 core::print(list.[](i)); | |
| 27 list.[]=(i, "Hello, Brave New World!"); | |
| 28 core::print(list.[](i)); | |
| 29 i = 87; | |
| 30 core::print(i.unary-()); | |
| 31 core::print(i.~()); | |
| 32 core::print(!i.==(42)); | |
| 33 core::print(i = i.-(1)); | |
| 34 core::print(i = i.+(1)); | |
| 35 core::print(let final dynamic #t1 = i in let final dynamic #t2 = i = #t1.-(1)
in #t1); | |
| 36 core::print(let final dynamic #t3 = i in let final dynamic #t4 = i = #t3.+(1)
in #t3); | |
| 37 } | |
| OLD | NEW |