Mark index set as using variable

Resolves #2906
This commit is contained in:
Vurv 2023-12-03 17:28:16 -08:00
parent d23019bc32
commit c903981357

View File

@ -974,6 +974,8 @@ local CompileVisitors = {
-- It can have indices, it already exists
if #indices > 0 then
existing.trace_if_unused = nil
local setter, id = table.remove(indices), existing.depth
stmts[i] = function(state)
return state.Scopes[id][var]