Closed tgrapperon closed 3 years ago
Hello! I've spotted a configuration where SwiftFormat removes parentheses and make the code not compilable:
A( first: 1...(.greatestFiniteMagnitude), second: 1...(.greatestFiniteMagnitude) )
is formatted as
A( first: 1....greatestFiniteMagnitude, second: 1....greatestFiniteMagnitude )
It seems to work as expected when only one range is involved:
A( first: 1...(.greatestFiniteMagnitude) )
A( first: 1 ... .greatestFiniteMagnitude )
Thanks!
@tgrapperon fixed in 0.48.7
Hello! I've spotted a configuration where SwiftFormat removes parentheses and make the code not compilable:
is formatted as
It seems to work as expected when only one range is involved:
is formatted as
Thanks!