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
Applying two mutually exclusive guard constraints doesn't lead to 'never' type in the following case:
functionololo(){letstringOrNumber: string|number=3>5 ? "a" : 7;if(typeofstringOrNumber==="number"){if(typeofstringOrNumber!=="number"){stringOrNumber;// shouldn't this be 'never'?}}
Seems that it should.
The text was updated successfully, but these errors were encountered:
I mean you could argue that, but at the same time when the code is illogical and unreachable at run-time, why would you expect the control flow to work? What benefit would there be in coding for that?
Applying two mutually exclusive guard constraints doesn't lead to 'never' type in the following case:
Seems that it should.
The text was updated successfully, but these errors were encountered: