Skip to content

[NFC] Fold Switch-Nest in Obligation Verification #33411

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 1 commit into from
Aug 12, 2020

Conversation

CodaFi
Copy link
Contributor

@CodaFi CodaFi commented Aug 11, 2020

Fold the switch statement to have each arm share as much code between them as possible. This reduces a ton of duplication from the error continuations and makes it slightly easier to update this code when more kinds of cases show up here later.

There are otherwise no behavior changes here.

Fold the switch statement to have each arm share as much code between them as possible. This reduces a ton of duplication from the error continuations and makes it slightly easier to update this code when more kinds of cases show up here later.
@CodaFi
Copy link
Contributor Author

CodaFi commented Aug 11, 2020

@swift-ci smoke test and merge

@swift-ci swift-ci merged commit 207033e into swiftlang:master Aug 12, 2020
@CodaFi CodaFi deleted the much-obliged branch August 12, 2020 16:41
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