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

spaceAroundOperators false positive with @MainActor and @Sendable #1698

Closed
brzzdev opened this issue May 14, 2024 · 1 comment
Closed

spaceAroundOperators false positive with @MainActor and @Sendable #1698

brzzdev opened this issue May 14, 2024 · 1 comment
Labels
bug fixed in develop bug/feature resolved in the develop branch

Comments

@brzzdev
Copy link

brzzdev commented May 14, 2024

Given
let example = Example<(@MainActor () -> Void)?>(nil)
or
let example = Example<(@Sendable () -> Void)?>(nil)
then
spaceAroundOperators
will change these to
let example = Example < (@MainActor () -> Void)?> nil
let example = Example < (@Sendable () -> Void)?> nil
which is then an error in Xcode.

let example = Example<(() -> Void)?>
doesn't have this issue.

@brzzdev brzzdev changed the title spaceAroundOperators false positive with @MainActor and @Sendable redundantParens and spaceAroundOperators false positive with @MainActor and @Sendable May 14, 2024
@brzzdev brzzdev changed the title redundantParens and spaceAroundOperators false positive with @MainActor and @Sendable spaceAroundOperators false positive with @MainActor and @Sendable May 14, 2024
@nicklockwood nicklockwood added bug fixed in develop bug/feature resolved in the develop branch labels May 18, 2024
@nicklockwood
Copy link
Owner

@brzzdev fixed in 0.53.10

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug fixed in develop bug/feature resolved in the develop branch
Projects
None yet
Development

No branches or pull requests

2 participants