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
Related Issues: Nothing particularly close. #5453 tracked the variadic kinds proposal and #39094 implemented them. I am keenly looking at what's coming out of the recursive conditional types mentioned in #40006 though...
The text was updated successfully, but these errors were encountered:
TypeScript Version: 4.0.0-beta
Search Terms: cannot be used to index type tuple partial generic template variadic
Code
Expected behavior:
There should be no type checker errors.
TestNowFour
is equal to the literal4
.Actual behavior:
The following error is emitted for
WithOneMore<T>['length']
:Interestingly,
TestNowFour
is computed to be equal to the literal4
regardless of the error.Playground Link: Playground Link
Related Issues: Nothing particularly close. #5453 tracked the variadic kinds proposal and #39094 implemented them. I am keenly looking at what's coming out of the recursive conditional types mentioned in #40006 though...
The text was updated successfully, but these errors were encountered: