OLD | NEW |
1 library; | 1 library; |
2 import self as self; | 2 import self as self; |
3 | 3 |
4 static field dynamic v; | 4 static field dynamic v; |
5 static method main(dynamic arguments) → dynamic { | 5 static method main(dynamic arguments) → dynamic { |
6 final Vector #context = MakeVector(3); | 6 final dynamic #context = MakeVector(3); |
7 #context[2] = null; | 7 #context[2] = null; |
8 (MakeClosure<(dynamic) → dynamic>(self::closure#main#function, #context)).call
(87); | 8 (MakeClosure<(dynamic) → dynamic>(self::closure#main#function, #context)).call
(87); |
9 if(!self::v.==(87)) { | 9 if(!self::v.==(87)) { |
10 throw "Unexpected value in v: ${self::v}"; | 10 throw "Unexpected value in v: ${self::v}"; |
11 } | 11 } |
12 if(!(#context[2]).==(87)) { | 12 if(!(#context[2]).==(87)) { |
13 throw "Unexpected value in w: ${#context[2]}"; | 13 throw "Unexpected value in w: ${#context[2]}"; |
14 } | 14 } |
15 self::v = true; | 15 self::v = true; |
16 (MakeClosure<() → dynamic>(self::closure#main#function#1, #context)).call(); | 16 (MakeClosure<() → dynamic>(self::closure#main#function#1, #context)).call(); |
17 if(!self::v.==(false)) { | 17 if(!self::v.==(false)) { |
18 throw "Unexpected value in v: ${self::v}"; | 18 throw "Unexpected value in v: ${self::v}"; |
19 } | 19 } |
20 if(!(#context[2]).==(false)) { | 20 if(!(#context[2]).==(false)) { |
21 throw "Unexpected value in w: ${#context[2]}"; | 21 throw "Unexpected value in w: ${#context[2]}"; |
22 } | 22 } |
23 } | 23 } |
24 static method closure#main#function(Vector #contextParameter, dynamic x) → dynam
ic { | 24 static method closure#main#function(dynamic #contextParameter, dynamic x) → dyna
mic { |
25 return self::v = #contextParameter[2] = x; | 25 return self::v = #contextParameter[2] = x; |
26 } | 26 } |
27 static method closure#main#function#1(Vector #contextParameter) → dynamic { | 27 static method closure#main#function#1(dynamic #contextParameter) → dynamic { |
28 for (; #contextParameter[2] = self::v; ) { | 28 for (; #contextParameter[2] = self::v; ) { |
29 self::v = false; | 29 self::v = false; |
30 } | 30 } |
31 } | 31 } |
OLD | NEW |