Reproduction Steps
this can be placed into any script or module
local function x<T...>(func: ()->(T...))
local r = {func()}
end
Expected Behavior
Should be no crash and give a warning like when trying to place a variadic type pack into a table.
Actual Behavior
A warning appears in script analysis “Luau ran into an unexpected error and will not type check until Studio is restarted.” and a moment later studio closes without any error dialog.
Workaround
table.pack
local function x<T...>(func: ()->(T...))
local r = table.pack(func()) -- r is {[number]: nil, n: number}
end
and casting
local function x<T...>(func: ()->(T...))
local r = {(func :: any)()} -- r is {any}
end
Issue Area: Studio
Issue Type: Crashing
Impact: Moderate
Frequency: Often