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
Overloads aren't resolved during inference (only the last is examined), nor are they expanded out combinatorially. In general for any given sequence of specific overloads like this there "should" be a final signature like (x: 'a' | 'b' | 'c' | 'D'): 0 | 1 | 2 | 3, which will be the one used during inference. This won't give you the most specific type, but would prevent hitting never here
Uh oh!
There was an error while loading. Please reload this page.
TypeScript Version: 3.0.3
Search Terms:
Code
Expected behavior:
One
should be1
Actual behavior:
One
isnever
Playground Link: link
Related Issues: #26591
The text was updated successfully, but these errors were encountered: