We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
$ swiftformat --version 0.52.6
This code:
private func constraint() -> [Int] { [ 1, 2, { switch Bool.random() { case true: 3 case false: 4 } }(), ] }
generates this code:
private func constraint() -> [Int] { [ 1, 2, switch Bool.random() { case true: 3 case false: 4 }, ] }
which doesn't compile due to:
file.swift:5:9: error: 'switch' may only be used as expression in return, throw, or as the source of an assignment switch Bool.random() { ^
The text was updated successfully, but these errors were encountered:
@calda would you mind taking a look at this one?
Sorry, something went wrong.
redundantClosure
@everlof fixed in 0.52.8
Awesome! Thanks!
No branches or pull requests
This code:
generates this code:
which doesn't compile due to:
The text was updated successfully, but these errors were encountered: