Skip to content

Improve pattern recognition in UseLetInEveryBoundCaseVariable. #244

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
Oct 26, 2020

Conversation

allevato
Copy link
Member

This rule was previously flagging uses of let/var that don't
apply (such as let x as Y). This commit also includes
improvements to drill through optional patterns (e.g.,
case let .foo(x)?) and now handles tuple patterns as well
(e.g., case let (x, y)).

Fixes SR-11773.

This rule was previously flagging uses of `let/var` that don't
apply (such as `let x as Y`). This commit also includes
improvements to drill through optional patterns (e.g.,
`case let .foo(x)?`) and now handles tuple patterns as well
(e.g., `case let (x, y)`).

Fixes SR-11773.
@allevato
Copy link
Member Author

cc @dylansturg

@allevato allevato merged commit c3c17ad into swiftlang:main Oct 26, 2020
@allevato allevato deleted the distributed-let branch October 26, 2020 17:15
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