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: 3.1.0-dev.20180714
Search Terms:
union
Code
Expected behavior:
No error.
Actual behavior:
Type '"a"' is not assignable to type '"b"'.
Playground Link:
http://www.typescriptlang.org/play/index.html#src=function%20g(x%3A%20%22a%22%20%7C%20%22b%22)%20%7B%0A%20%20%20%20const%20f%3A%20%7B%20type%3A%20%22a%22%20%7D%20%7C%20%7B%20type%3A%20%22b%22%20%7D%20%3D%20%7B%0A%20%20%20%20%20%20%20%20type%3A%20x%0A%20%20%20%20%7D%3B%0A%7D%0A
Related Issues:
I'm pretty sure this already exists, but I have no clue what to search for. :(
The text was updated successfully, but these errors were encountered: