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 return the substitute in substitution instantiation when assignability fails (rather than subtype) #31027

Conversation

weswigham
Copy link
Member

Fixes #30868

@ahejlsberg ahejlsberg self-requested a review April 19, 2019 21:32
Copy link
Member

@ahejlsberg ahejlsberg left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good, but let's check RWC and DT.

@weswigham
Copy link
Member Author

@typescript-bot test this & @typescript-bot run dt

@typescript-bot
Copy link
Collaborator

typescript-bot commented Apr 19, 2019

Heya @weswigham, I've started to run the extended test suite on this PR at a2aefd4. You can monitor the build here. It should now contribute to this PR's status checks.

@typescript-bot
Copy link
Collaborator

typescript-bot commented Apr 19, 2019

Heya @weswigham, I've started to run the parallelized Definitely Typed test suite on this PR at a2aefd4. You can monitor the build here. It should now contribute to this PR's status checks.

@weswigham weswigham merged commit 7a3e68f into microsoft:master Apr 19, 2019
@weswigham weswigham deleted the use-assignability-not-subtype-in-substitution-instantiation branch April 19, 2019 23:02
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Inference regression with mapped types in 3.4.1
3 participants