Updated stdlib to use @discardableResult and _ = .

This commit is contained in:
Trent Nadeau
2016-05-09 18:59:19 -04:00
parent 5455f8634b
commit 6e327b4ddb
24 changed files with 49 additions and 8 deletions

View File

@@ -465,24 +465,28 @@ public func /=(lhs: inout CGFloat, rhs: CGFloat) {
@_transparent
@available(*, unavailable, message: "use += 1")
@discardableResult
public prefix func ++(rhs: inout CGFloat) -> CGFloat {
fatalError("++ is not available")
}
@_transparent
@available(*, unavailable, message: "use -= 1")
@discardableResult
public prefix func --(rhs: inout CGFloat) -> CGFloat {
fatalError("-- is not available")
}
@_transparent
@available(*, unavailable, message: "use += 1")
@discardableResult
public postfix func ++(lhs: inout CGFloat) -> CGFloat {
fatalError("++ is not available")
}
@_transparent
@available(*, unavailable, message: "use -= 1")
@discardableResult
public postfix func --(lhs: inout CGFloat) -> CGFloat {
fatalError("-- is not available")
}