luau icon indicating copy to clipboard operation
luau copied to clipboard

`next` type errors on refined table type

Open Waffle3z opened this issue 3 months ago • 1 comments

local t: any = {}
if type(t) == "table" and next(t) then -- TypeError: Type 'table' could not be converted into '{+ [K]: V +}'
	print("hello")
end

possibly related to https://github.com/luau-lang/luau/issues/1988

Waffle3z avatar Sep 03 '25 21:09 Waffle3z

Hello, this issue has been patched and should be included in the next release (693)!

skanosue avatar Sep 22 '25 23:09 skanosue