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

[SR-8617] Index explicit types in enum cases #20324

Merged
merged 1 commit into from Nov 6, 2018

Conversation

Projects
None yet
3 participants
@rockbruno
Contributor

rockbruno commented Nov 5, 2018

Similar to #19938, explicitly defining a type in enum patterns such as if case Foo.bar = x {} was resulting in the type portion not being indexed. This is somewhat common if you have an enum inside a nested type, so this checks the existence of an explicit parent and walks it as well.

Resolves SR-8617.

@CodaFi

This comment has been minimized.

Collaborator

CodaFi commented Nov 5, 2018

@swift-ci please smoke test

@slavapestov slavapestov merged commit dc3c747 into apple:master Nov 6, 2018

2 checks passed

Swift Test Linux Platform (smoke test)
Details
Swift Test OS X Platform (smoke test)
Details
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment