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