Closed lhunath closed 1 year ago
I think the issue is that it needs to be written as (some Publisher<String, Never>)?
.
Obviously swiftformat shouldn't introduce a breaking change here, but until the bug is fixed, manually adding the parens might be a workaround?
@lhunath fixed in 0.51.9
Given the following code:
SwiftFormat will rewrite as:
This results in illegal Swift code:
(The error message is misleading, the correct code was the original; do not change
some
toany
)