OLD | NEW |
1 library; | 1 library; |
2 import self as self; | 2 import self as self; |
3 | 3 |
4 static method main(dynamic arguments) → dynamic { | 4 static method main(dynamic arguments) → dynamic { |
5 final Vector #context = MakeVector(3); | 5 final dynamic #context = MakeVector(3); |
6 #context[2] = MakeClosure<() → dynamic>(self::closure#main#f, #context); | 6 #context[2] = MakeClosure<() → dynamic>(self::closure#main#f, #context); |
7 final () → dynamic g = MakeClosure<() → dynamic>(self::closure#main#g, #contex
t); | 7 final () → dynamic g = MakeClosure<() → dynamic>(self::closure#main#g, #contex
t); |
8 g.call(); | 8 g.call(); |
9 } | 9 } |
10 static method closure#main#f(Vector #contextParameter) → dynamic { | 10 static method closure#main#f(dynamic #contextParameter) → dynamic { |
11 return null; | 11 return null; |
12 } | 12 } |
13 static method closure#main#g(Vector #contextParameter) → dynamic { | 13 static method closure#main#g(dynamic #contextParameter) → dynamic { |
14 return (#contextParameter[2]).call(); | 14 return (#contextParameter[2]).call(); |
15 } | 15 } |
OLD | NEW |