int x = 0 | |
[1, 2, 3].each (new Closure(this, this) { | |
void call() { | |
x++ | |
} | |
}) | |
print x | |
----- | |
0(1) element: null | |
1(2) WRITE x | |
2(3) READ x | |
3(4) element: Anonymous class | |
4(5) READ print | |
5(6) READ x | |
6(7) ARGUMENT element: Reference expression | |
7(8) element: Call expression MAYBE_RETURN | |
8() element: null |