You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Describe the bug sv: Expression 2 (oops): Internal error 'entities/gmod_wire_expression2/core/number.lua:81: attempt to perform arithmetic on local 'lhs' (a nil value)' at line 8, char 1
This is intentional since @strict doesn't replace globals every time now, but I think it really should initialize on the first go, at least, since that wouldn't cost much.
That or make the compiler not stupid and include the scoping when deciding if a variable has already been assigned to. I'd prefer that.
should also write down the scopeid it was initialized at (careful to only assign if currentid < assignid), then just check if assignid < currentid when checking if the variable is initialized or not.
Describe the bug
sv: Expression 2 (oops): Internal error 'entities/gmod_wire_expression2/core/number.lua:81: attempt to perform arithmetic on local 'lhs' (a nil value)' at line 8, char 1
To Reproduce
Expected behavior
A compiler error or something
The text was updated successfully, but these errors were encountered: