luau
luau copied to clipboard
Cannot iterate over a table without indexer but still works?
` !strict local t = {a = 2}
for k, v in t do print(k,v) end -- Cannot iterate over a table without indexer for k, v in pairs(t) do ... end -- no issue `
i thought the pairs and ipairs are going to be depricated soon but typechecker thinks otherwise.