luau icon indicating copy to clipboard operation
luau copied to clipboard

Variadics using generic type pack causing `nil` type with new solver

Open Ketasaja opened this issue 1 year ago • 0 comments

Tested on 0.637.

--!strict
function _f<t...>(...: t...)
	local _ = select(1, ...) -- TypeError: Function only returns 0 values, but 1 is required here
end

_ should be any since select returns ...any, but is nil.

Ketasaja avatar Aug 05 '24 03:08 Ketasaja