Closed alanzeino closed 2 years ago
Using the latest version of SwiftFormat (0.49.11), this code:
private extension FooOperator { var op: ((Double, Double) -> Double)? { switch self { case .unknown: return nil case .add: return (+) case .subtract: return (-) case .multiply: return (*) case .divide: return (/) } } }
results in an error parsing the return (/):
return (/)
error: Unexpected end of file at 14:23 in /Users/alanz/Downloads/FooOperator.swift.
@alanzeino fixed in 0.49.12
Using the latest version of SwiftFormat (0.49.11), this code:
results in an error parsing the
return (/)
: