OLD | NEW |
(Empty) | |
| 1 library; |
| 2 import self as self; |
| 3 import "dart:core" as core; |
| 4 |
| 5 static method main() → dynamic { |
| 6 dynamic closures = <dynamic>[MakeClosure<(dynamic, dynamic, [dynamic]) → dynam
ic>(self::closure#main#function, null), MakeClosure<(dynamic, dynamic, dynamic)
→ dynamic>(self::closure#main#function#1, null), MakeClosure<(dynamic, dynamic,
{z: dynamic}) → dynamic>(self::closure#main#function#2, null), MakeClosure<(dyna
mic, dynamic, dynamic, dynamic, dynamic) → dynamic>(self::closure#main#function#
3, null)]; |
| 7 for (dynamic c in closures) { |
| 8 core::bool ok = false; |
| 9 try { |
| 10 c.call(1, 2, 3, 4); |
| 11 } |
| 12 on core::NoSuchMethodError catch(final core::NoSuchMethodError _) { |
| 13 ok = true; |
| 14 } |
| 15 if(!ok) { |
| 16 throw core::Exception::•("Expected an error!"); |
| 17 } |
| 18 } |
| 19 (MakeClosure<(dynamic, dynamic, [dynamic]) → dynamic>(self::closure#main#funct
ion#4, null)).call(1, 2); |
| 20 (MakeClosure<(dynamic, dynamic, [dynamic]) → dynamic>(self::closure#main#funct
ion#5, null)).call(1, 2, 3); |
| 21 } |
| 22 static method closure#main#function(Vector #contextParameter, dynamic x, dynamic
y, [dynamic z]) → dynamic {} |
| 23 static method closure#main#function#1(Vector #contextParameter, dynamic x, dynam
ic y, dynamic z) → dynamic {} |
| 24 static method closure#main#function#2(Vector #contextParameter, dynamic x, dynam
ic y, {dynamic z}) → dynamic {} |
| 25 static method closure#main#function#3(Vector #contextParameter, dynamic x, dynam
ic y, dynamic z, dynamic w, dynamic v) → dynamic {} |
| 26 static method closure#main#function#4(Vector #contextParameter, dynamic x, dynam
ic y, [dynamic z]) → dynamic {} |
| 27 static method closure#main#function#5(Vector #contextParameter, dynamic x, dynam
ic y, [dynamic z]) → dynamic {} |
OLD | NEW |