Skip to content

Classify mapped type inferences as secondary #12640

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

Merged
merged 3 commits into from
Dec 4, 2016

Conversation

ahejlsberg
Copy link
Member

With this PR we classify inferences made to mapped types as secondary. Thus, inferences made directly to a type parameter T are given preference over inferences made to, for example, Partial<T> or Readonly<T>.

Fixes #12633.

@DanielRosenwasser
Copy link
Member

👍 - is this also 2.1 bound?

@ahejlsberg ahejlsberg merged commit 23992ba into master Dec 4, 2016
@ahejlsberg ahejlsberg deleted the mappedTypesSecondaryInferences branch December 4, 2016 15:02
@mhegazy
Copy link
Contributor

mhegazy commented Dec 4, 2016

Yes. I will port the three changes that went in over the weekend on Monday.

@microsoft microsoft locked and limited conversation to collaborators Jun 19, 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.

4 participants