mirror of
https://github.com/apple/swift.git
synced 2025-12-21 12:14:44 +01:00
25 lines
452 B
Swift
25 lines
452 B
Swift
prefix operator ~~~ {}
|
|
postfix operator ^^ {}
|
|
|
|
infix operator *- {
|
|
associativity left
|
|
precedence 50
|
|
}
|
|
|
|
infix operator -* {
|
|
associativity right
|
|
precedence 40
|
|
}
|
|
|
|
infix operator *-* {
|
|
associativity none
|
|
precedence 10
|
|
assignment
|
|
}
|
|
|
|
prefix public func ~~~(x: Bool) -> () {}
|
|
postfix public func ^^(inout x: Bool) -> () { x = true }
|
|
public func *-*(x: Bool, y: Bool) -> () {}
|
|
public func *-(inout x: Bool, y: Bool) -> Bool { x = y; return x }
|
|
|