Skip to content

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