Swiftformat: Bug: Problems with --operatorfunc spaced

Created on 9 Apr 2019  路  4Comments  路  Source: nicklockwood/SwiftFormat

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.

Most helpful comment

@DavinAhn fixed in 0.40.6

All 4 comments

@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

Was this page helpful?
0 / 5 - 0 ratings

Related issues

igorkulman picture igorkulman  路  3Comments

MaxDesiatov picture MaxDesiatov  路  3Comments

PompeiaPaetenari picture PompeiaPaetenari  路  4Comments

dcramps picture dcramps  路  3Comments

DagAgren picture DagAgren  路  4Comments