moonsharp-devs / moonsharp

An interpreter for the Lua language, written entirely in C# for the .NET, Mono, Xamarin and Unity3D platforms, including handy remote debugger facilities.

Home Page:http://www.moonsharp.org

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

local variables without assignment are initialized by latest stack values

Aberro opened this issue · comments

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.

Duplicate of #263