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

Fix indexed access constraint #31537

Merged
merged 4 commits into from May 23, 2019
Merged

Fix indexed access constraint #31537

merged 4 commits into from May 23, 2019

Conversation

ahejlsberg
Copy link
Member

Fixes #31385.

@ahejlsberg
Copy link
Member Author

@typescript-bot run dt

@typescript-bot
Copy link
Collaborator

typescript-bot commented May 22, 2019

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

@@ -7657,15 +7657,20 @@ namespace ts {
return hasNonCircularBaseConstraint(type) ? getConstraintFromIndexedAccess(type) : undefined;
}

function getSimplifiedTypeOrConstraint(type: Type) {
Copy link
Member

Choose a reason for hiding this comment

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

Line 13065 in the checker could also be using an invocation of this helper.

@ahejlsberg
Copy link
Member Author

DT issues are unrelated to this PR, so I think it's good to merge.

@ahejlsberg ahejlsberg merged commit e601333 into master May 23, 2019
@ahejlsberg ahejlsberg deleted the fixIndexedAccessConstraint branch May 23, 2019 01:35
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.

type infer failed with a pathological case in 3.5.0, but in 3.4.0 it works
4 participants