Skip to content

Classify mapped type inferences as secondary#12640

Merged
ahejlsberg merged 3 commits into
masterfrom
mappedTypesSecondaryInferences
Dec 4, 2016
Merged

Classify mapped type inferences as secondary#12640
ahejlsberg merged 3 commits into
masterfrom
mappedTypesSecondaryInferences

Conversation

@ahejlsberg
Copy link
Copy Markdown
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
Copy Markdown
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
Copy Markdown
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