-
Notifications
You must be signed in to change notification settings - Fork 12.8k
Wrong type inference with tuples #22432
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
Comments
h([[]] as [never[]]); // T: never[], U: never[] | ConcatArray<never[]>
f([[], ''] as [never[], string]); // T: string | never[], U: never[] | ConcatArray<string | never[]> T should be never. U should be {}. |
@falsandtru we'll get to this eventually but responses are typically much faster if there's some explanation of what's going on, or a short repro that gets precisely to the point |
Okay, I separated this into some issues. |
Sign up for free
to subscribe to this conversation on GitHub.
Already have an account?
Sign in.
Uh oh!
There was an error while loading. Please reload this page.
TypeScript Version: 2.7.0-dev.20180307
Search Terms:
Code
Expected behavior:
Actual behavior:
Playground Link:
Related Issues:
The text was updated successfully, but these errors were encountered: