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
Expected behavior:
test.call with 3 arguments doesn't error.
Actual behavior:
test.call with 3 arguments does error, because typescript force-chooses the last overload of an overloaded method.
Related Issues:
This issue is impossible to search for because "...args" and "call" are such generic terms, that a bunch of unrelated issues come up in the search result. I did go looking for duplicates but there is a high possibility that there's a duplicate out there that I wasn't able to find.
The text was updated successfully, but these errors were encountered:
TypeScript Version:
Search Terms: ...args, call, typescript, varargs.
Code
Playground Link
Expected behavior:
test.call with 3 arguments doesn't error.
Actual behavior:
test.call with 3 arguments does error, because typescript force-chooses the last overload of an overloaded method.
Related Issues:
This issue is impossible to search for because "...args" and "call" are such generic terms, that a bunch of unrelated issues come up in the search result. I did go looking for duplicates but there is a high possibility that there's a duplicate out there that I wasn't able to find.
The text was updated successfully, but these errors were encountered: