Originally reported in parrot TT #173 (http://trac.parrot.org/parrot/ticket/173)
lexicals can't be found in nested .subs.
the following works in parrot, but the generated bytecode doesn't seem to work:
.lex "x", $P0
$P0 = new "Integer"
$P0 = 42
.sub foo :outer("main")
$P0 = find_lex "x"
So, apparently, lexicals are not stored correctly.
This needs fixing.
The original source code is missing a "capture_lex" instruction -- see comment at http://trac.parrot.org/parrot/ticket/173#comment:8 .