OLD | NEW |
1 library; | 1 library; |
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 foo({dynamic fisk = null}) → dynamic { | 5 static method foo({dynamic fisk = null}) → dynamic { |
6 core::print(fisk); | 6 core::print(fisk); |
7 } | 7 } |
8 static method caller(dynamic f) → dynamic { | 8 static method caller(dynamic f) → dynamic { |
9 f.call(); | 9 f.call(); |
10 } | 10 } |
(...skipping 51 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
62 core::print(message); | 62 core::print(message); |
63 } | 63 } |
64 h.call(message: "Hello, World"); | 64 h.call(message: "Hello, World"); |
65 self::caller(({dynamic x}) → dynamic { | 65 self::caller(({dynamic x}) → dynamic { |
66 core::print("<anon> was called with ${x}"); | 66 core::print("<anon> was called with ${x}"); |
67 }); | 67 }); |
68 core::print(core::int.toString()); | 68 core::print(core::int.toString()); |
69 core::print(core::int); | 69 core::print(core::int); |
70 core::print(let final dynamic #t5 = core::int in let final dynamic #t6 = #t5.t
oString() in #t5); | 70 core::print(let final dynamic #t5 = core::int in let final dynamic #t6 = #t5.t
oString() in #t5); |
71 try { | 71 try { |
72 core::print(throw new core::NoSuchMethodError::•(null, #toString, <dynamic>[
], <dynamic, dynamic>{}, null)); | 72 core::print(throw new core::NoSuchMethodError::_withType(null, #toString, 32
, <dynamic>[].toList(growable: false), <dynamic, dynamic>{}, null)); |
73 throw "Shouldn't work"; | 73 throw "Shouldn't work"; |
74 } | 74 } |
75 on core::NoSuchMethodError catch(final dynamic e) { | 75 on core::NoSuchMethodError catch(final dynamic e) { |
76 core::print("As expected: ${e}"); | 76 core::print("As expected: ${e}"); |
77 } | 77 } |
78 core::print(core::int::parse("42")); | 78 core::print(core::int::parse("42")); |
79 } | 79 } |
OLD | NEW |