Skip to content

Allow drawing inferences to conditional type branches #27012

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

Merged

Conversation

weswigham
Copy link
Member

There's two changes here. One is creating a branch in inferFromTypes which can infer from some source to either branch of a conditional type. The other is digging through a conditional type's default constraint to determine the primitiveness of the conditional type as a constraint when generating a final inference.

Fixes #25065

@weswigham weswigham merged commit a55c0b7 into microsoft:master Sep 17, 2018
@weswigham weswigham deleted the conditional-inferencing-improvements branch September 17, 2018 22:19
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.

2 participants