luau icon indicating copy to clipboard operation
luau copied to clipboard

Cannot iterate over a table without indexer but still works?

Open HarmosCreations opened this issue 10 months ago • 0 comments

` !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.

HarmosCreations avatar Feb 12 '25 13:02 HarmosCreations