Skip to content

Sema: Reject empty switch statements during type checking so that we can issue fixits to fill the unhandled switch cases. #7766

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 2 commits into from
Feb 25, 2017

Conversation

nkcsgexi
Copy link
Contributor

No description provided.

…can issue fixits to fill the unhandled switch cases.
@nkcsgexi
Copy link
Contributor Author

@swift-ci smoke test

@nkcsgexi
Copy link
Contributor Author

@swift-ci please smoke test

@slavapestov
Copy link
Contributor

Could the exhaustiveness check be moved from SIL to Sema so that we can issue fixits with missing cases, not just empty switches?

@nkcsgexi nkcsgexi merged commit daac020 into swiftlang:master Feb 25, 2017
@nkcsgexi
Copy link
Contributor Author

@slavapestov we do have a fixit for the missing cases in a separate commit (d12d3c1). Are you thinking about something different?

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