Skip to content

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

@nothing1649

Description

@nothing1649

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>) -> ()

Metadata

Metadata

Assignees

Labels

bugSomething isn't workingnew solverThis issue is specific to the new solver.

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions