|
|
|
|
|
by superlopuh
1694 days ago
|
|
Yes: precedencegroup MyPrecedence {}
infix operator +++: MyPrecedence
func +++ (lhs: Int, rhs: Int) -> Int { lhs + rhs }
let a = 1 + 2 +++ 3
Error: Adjacent operators are in unordered precedence groups 'AdditionPrecedence' and 'MyPrecedence'
|
|