Skip to content

Look at simplified types when checking distributive conditional constraints #23884

New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

Merged

Conversation

weswigham
Copy link
Member

@weswigham weswigham commented May 4, 2018

In #23592 we changed the getConstraintOfType function to not simplify index types - distributive conditional type constraints rely on the type being simplified to actually have something to iterate over, ergo getConstraintOfDistributiveConditionalType must call getSimplifiedType itself.

Fixes #23849

@weswigham weswigham merged commit 618da24 into microsoft:master May 4, 2018
@weswigham weswigham deleted the conditional-constraint-distributivity branch May 4, 2018 21:35
@microsoft microsoft locked and limited conversation to collaborators Jul 31, 2018
# for free to subscribe to this conversation on GitHub. Already have an account? #.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants