Steps to reproduce:
In an empty directory add Test.swift with:
protocol TestProtocol {}
class TestArray<Element> {}
let value = (TestArray<Int> & TestProtocol).self
From the same directory run:
swiftformat --operatorfunc spaced ./Test.swift
Expected results:
protocol TestProtocol {}
class TestArray<Element> {}
let value = (TestArray<Int> & TestProtocol).self
Actual results:
protocol TestProtocol {}
class TestArray<Element> {}
let value = (TestArray < Int> & TestProtocol).self
Notes:
There was no problem with 0.40.1, but occur this problem after updating to 0.40.5.
@DavinAhn thanks for reporting, I'll get this fixed asap.
@DavinAhn fixed in 0.40.6
Dear @nicklockwood.
Thank you very much for your quick fix.
But, 0.40.6 was not updated on brew 馃槶
@DavinAhn it should be soon. Homebrew updates have to be manually approved by their team - here's the PR: https://github.com/Homebrew/homebrew-core/pull/38819
Most helpful comment
@DavinAhn fixed in 0.40.6