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
Turns out that doubling makes things go really fast!
The instantiation depth limiter of 50 isn't "enough" in some of these cases.
Could introduce an "unreasonable length limit" for tuples, then issue an error.
Unclear what length you want.
65,535 is good if we need to run on 16-bit platforms!
Should create a cap on how big a tuple should be constructed.
But that should be different from whether the type length is derived from a syntactic position (i.e. an array literal) than if it's created purely in the type space.
Synthesis cap should be different (probably higher?) from the inference cap.
In addition to instantiation depth, we have the global count of instantiations - worth seeing if there is a mechanism for leveraging that.
The text was updated successfully, but these errors were encountered:
as const
Usage Analysis(continued from last design meeting)
Better-Typed DOM Methods
microsoft/TypeScript-DOM-lib-generator@c81fa76
as
version is not that bad overall.Instantiation Limiter Doesn't Catch Big Tuples
#41771
The text was updated successfully, but these errors were encountered: