-
Notifications
You must be signed in to change notification settings - Fork 12.5k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
array.map lose literal types #26999
Comments
Root cause is #241 |
This issue has been marked as a 'Duplicate' and has seen no recent activity. It has been automatically closed for house-keeping purposes. |
It won't be fixed by #40311 unfortunately (see the "Future Work" section in the PR writeup) |
Well crud. This is all my fault, I had a bunch of related tabs open and posted this comment in a few of them where I thought the issue being reported was the same -- this wasn't one of them. Sorry! |
Don't sweat it, I had the same enthusiasm at first. 😅 |
TypeScript Version: 3.1.0-dev.20180906
Search Terms:
Code
Expected behavior:
No error
Actual behavior:
Type 'string' is not assignable to type '"a" | "b"'.
The text was updated successfully, but these errors were encountered: