Skip to content

[Typechecker] Perform capture analysis for enums as well #27311

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
Sep 24, 2019
Merged

[Typechecker] Perform capture analysis for enums as well #27311

merged 2 commits into from
Sep 24, 2019

Conversation

theblixguy
Copy link
Collaborator

@theblixguy theblixguy commented Sep 23, 2019

We weren't calling checkPatternBindingCaptures() for enums, only for structs and classes. If you look at the crasher code, the PBD for the property foo is inside the enum and was never checked.

Resolves SR-11509.

@theblixguy
Copy link
Collaborator Author

@swift-ci please smoke test

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