Skip to content
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

Only make inferences from tuple types of right arity #22850

Merged
merged 3 commits into from
Mar 26, 2018

Conversation

ahejlsberg
Copy link
Member

@ahejlsberg ahejlsberg commented Mar 24, 2018

With this PR we only make inferences between tuple types of matching arity. Since #17765 tuple types with different arity are known never to be assignment compatible, so there's no point in making inferences between them, and when the inference target is a union type it actually degrades the quality of inferences.

Fixes #22562.
Fixes #22563.
Fixes #22564.

@ahejlsberg ahejlsberg merged commit d7df84d into master Mar 26, 2018
@ahejlsberg ahejlsberg deleted the tupleTypeInference branch March 26, 2018 16:35
@microsoft microsoft locked and limited conversation to collaborators Jul 25, 2018
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants