Files
swift-mirror/test/Serialization/Inputs/def_operator.swift
Chris Willmore 690daa539a Back out changes for in-place methods/operators from Xcode 7.
This reverts commits r26508, r26545, and r26576.

Swift SVN r26900
2015-04-02 21:14:28 +00:00

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 }