Skip to content

[Diagnostics] Detect and diagnose ternary branch type mismatches #29053

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
merged 4 commits into from
Jan 8, 2020

Conversation

xedin
Copy link
Contributor

@xedin xedin commented Jan 7, 2020

Add a new TernaryBranch element and use it to detect and fix errors related to
type mismatches between branches of the ternary operator.

@xedin xedin requested review from hborla and DougGregor January 7, 2020 21:52
@xedin
Copy link
Contributor Author

xedin commented Jan 7, 2020

@swift-ci please smoke test

@xedin xedin merged commit 66fe1ec into swiftlang:master Jan 8, 2020
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