Skip to content

[4.0] Sema: missing switch case fixits should print payload names explicitly instead of printing underscores. rdar://32121806 #10417

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
Jun 20, 2017

Conversation

nkcsgexi
Copy link
Contributor

@nkcsgexi nkcsgexi commented Jun 20, 2017

Explanation: The fixit for missing enum cases used to insert _ for associated values of enum cases, which is not informative enough. As a consequence, it may create an extra step of jump to definition to figure out what the associate values signify. This patch changes "_" to using the actual payload name, e.g. "let X" in the content fixits create.
Reviewed by: @CodaFi
Scope: Compiler Fixit
Radar: rdar://32121806
Risk: Low
Testing: Existing test updated

…y instead of printing underscores. rdar://32121806 (#10409)
@nkcsgexi nkcsgexi added this to the Swift 4.0 milestone Jun 20, 2017
@nkcsgexi
Copy link
Contributor Author

@swift-ci please test

@nkcsgexi nkcsgexi merged commit 8fbb2ca into swiftlang:swift-4.0-branch Jun 20, 2017
@nkcsgexi nkcsgexi deleted the fix-enum-4.0 branch June 20, 2017 22:37
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.

1 participant