luau icon indicating copy to clipboard operation
luau copied to clipboard

Recursive generic type with different parameters inside table or function crashes new solver

Open nothing1649 opened this issue 10 months ago • 0 comments

As of version 0.662, the following types crash the new solver, with the message "Internal recursion counter limit exceeded".

--InternalCompilerError: Internal recursion counter limit exceeded
type a<T> = {a<{T}>}
type b<T> = {b<T | string>}
type c<T> = {c<T & string>}
type d<T> = (d<T | string>) -> ()

nothing1649 avatar Feb 23 '25 14:02 nothing1649