Skip to content
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

[Swift 5.6] Regression in ClosureParameterPositionRule #3845

Closed
jpsim opened this issue Feb 9, 2022 · 1 comment · Fixed by #3871
Closed

[Swift 5.6] Regression in ClosureParameterPositionRule #3845

jpsim opened this issue Feb 9, 2022 · 1 comment · Fixed by #3871
Labels
swift-5.6 Issues with Swift 5.6/Xcode 13.3.

Comments

@jpsim
Copy link
Collaborator

jpsim commented Feb 9, 2022

ClosureParameterPositionRuleTests.testWithDefaultConfiguration() test is failing with Xcode 13.3 beta 2.

@jpsim jpsim added the swift-5.6 Issues with Swift 5.6/Xcode 13.3. label Feb 9, 2022
@jpsim
Copy link
Collaborator Author

jpsim commented Feb 9, 2022

The following examples are no longer triggering a violation in Swift 5.6:

[1, 2].map {
    [weak ↓self] number in
    number + 1
}
f.completionHandler = {
    thing in
    doStuff()
}
foo {
    [weak self] in
    self?.bar()
}

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
swift-5.6 Issues with Swift 5.6/Xcode 13.3.
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant