Skip to content

Add flag to omit default case in getSwitchClauseTypeOfWitnesses #33574

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

Conversation

jack-williams
Copy link
Collaborator

In light of #32695 the code that was ensuring that the cast was safe is now checked by the caller of isExhaustiveSwitchStatement. Rather than worrying about whether the caller has the necessary invariants in place to make the cast safe, just handle it directly.

@jack-williams jack-williams force-pushed the add-flag-to-getSwitchClauseTypeOfWitnesses branch 2 times, most recently from 32f5613 to df61cca Compare September 24, 2019 10:01
@jack-williams
Copy link
Collaborator Author

jack-williams commented Sep 24, 2019

<FIXED>

@sandersn sandersn added the For Backlog Bug PRs that fix a backlog bug label Feb 1, 2020
@weswigham weswigham merged commit 67ca82b into microsoft:master Mar 10, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
For Backlog Bug PRs that fix a backlog bug
Projects
Archived in project
Development

Successfully merging this pull request may close these issues.

3 participants