nicklockwood / SwiftFormat

A command-line tool and Xcode Extension for formatting Swift code
MIT License
7.77k stars 629 forks source link

`redundantLet` rule on global actor annotated closures #1521

Closed nkbelov closed 11 months ago

nkbelov commented 11 months ago

SwiftFormat rewrites

Task { @MainActor
    let _ = try await Something.something()
}

to

Task { @MainActor
    _ = try await Something.something()
}

causing the underscore to be interpreted as argument placeholder and further compiler errors.

Version 0.52.3.

nicklockwood commented 11 months ago

@nkbelov fixed in 0.52.4