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
Automatically closing this issue for housekeeping purposes. The issue labels indicate that it is unactionable at the moment or has already been addressed.
TypeScript Version: 2.3.2
Code
Expected behavior: No error
Actual behavior: Argument of type "A"|"B" is not assignable to type "B"
Ideally, TypeScript should detect that there is an overload for each variant of the union type and thus accept the union type as an argument.
The text was updated successfully, but these errors were encountered: