local variables without assignment are initialized by latest stack values
Aberro opened this issue · comments
Aberro commented
This will output current value from the stack, while it should be nil value.
`local x
print(x)'
AssignmentStatement.Compile tells SymbolRefExpression to emit OpCode.StoreLcl with stackofs=0 and tupleidx=1 and this makes no sense in given context.