Closed
Description
If I start with the code
var a: Optional< @Sendable (Int) -> (Float)> = nil
and apply swift-format format --parallel --recursive --in-place Sources
version 509.0.0 the code becomes
var a: @Sendable (Int) -> (Float)? = nil
The optionalness has moved from the whole phrase to just the return type. This has a different meaning. The new code doesn't compile because of this.
Metadata
Metadata
Assignees
Labels
No labels