luau icon indicating copy to clipboard operation
luau copied to clipboard

ICE "Unexpected abstract type pack!" triggered on function call with generics

Open JohnnyMorganz opened this issue 2 years ago • 0 comments

The following code triggers the "Unexpected abstract type pack!" ICE (note that the FFlag LuauReturnAnyInsteadOfICE is disabled)

local function createUseMemo(useValue)
	return function<T...>(createValue: () -> T..., dependencies: any): T...
		local memoizedValue = { createValue() }
	end
end

This can be reproduced using ./luau-analyze --fflags=LuauReturnAnyInsteadOfICE=False

JohnnyMorganz avatar Jan 19 '23 23:01 JohnnyMorganz