You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
flag to customize type instantiation depth limitΒ #46180
it seems that the type instantiation depth limit changes quite often (most recently in #45711). i think it would be useful to be able to customize this behavior in compiler flags such as typeInstantiationDepthLimit and tailRecursionTypeInstantiationDepthLimit
though i'm not sure how this would work if a project depends on a project that customizes these...
π» Use Cases
i have a repository of utility types, many of which use recursive conditional types and rely on the depth limit being quite high. a workaround for the depth limit i've been using is this logarithmic approach, but with the new tail recursion change i've been thinking of replacing it with a much simpler implementation, though that would change the limit from 10000 to 1000.
Activity
sandersn commentedon Oct 7, 2021
This is not something we want to do. See the commentary at #45025, right at the end.