Skip to content

Fix keyof with union or intersection constraint#13419

Merged
ahejlsberg merged 3 commits into
masterfrom
fixKeyofWithIntersectionConstraint
Jan 11, 2017
Merged

Fix keyof with union or intersection constraint#13419
ahejlsberg merged 3 commits into
masterfrom
fixKeyofWithIntersectionConstraint

Conversation

@ahejlsberg
Copy link
Copy Markdown
Member

@ahejlsberg ahejlsberg commented Jan 11, 2017

Fixes #13102.

Also, this PR removes an incorrect type relationship. Previously, given a type K extends keyof T, we would consider a type S assignable to K if S is assignable to keyof T. We no longer to that.

@ahejlsberg ahejlsberg merged commit 04da707 into master Jan 11, 2017
@ahejlsberg ahejlsberg deleted the fixKeyofWithIntersectionConstraint branch January 11, 2017 23:15
@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.

3 participants