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 field dynamic f; | 5 static field dynamic f; |
6 static method foo() → dynamic { | 6 static method foo() → dynamic { |
7 core::print(self::f.call(0)); | 7 core::print(self::f.call(0)); |
8 } | 8 } |
9 static method main(dynamic arguments) → dynamic { | 9 static method main(dynamic arguments) → dynamic { |
10 final dynamic #context = MakeVector(3); | 10 final dynamic #context = MakeVector(3); |
11 #context[2] = arguments; | 11 #context[2] = arguments; |
| 12 arguments = null; |
12 final (dynamic) → dynamic g = MakeClosure<(dynamic) → dynamic>(self::closure#m
ain#g, #context); | 13 final (dynamic) → dynamic g = MakeClosure<(dynamic) → dynamic>(self::closure#m
ain#g, #context); |
13 self::f = g; | 14 self::f = g; |
14 self::foo(); | 15 self::foo(); |
15 } | 16 } |
16 static method closure#main#g(dynamic #contextParameter, dynamic x) → dynamic { | 17 static method closure#main#g(dynamic #contextParameter, dynamic x) → dynamic { |
17 return (#contextParameter[2]).[](x); | 18 return (#contextParameter[2]).[](x); |
18 } | 19 } |
OLD | NEW |