mirror of
https://github.com/apple/swift.git
synced 2025-12-21 12:14:44 +01:00
[stdlib] update for 'inout' adjustment (SE-0031)
This commit is contained in:
@@ -75,7 +75,7 @@ public func &${op} <T : _IntegerArithmeticType>(lhs: T, rhs: T) -> T {
|
||||
/// ${Action} `lhs` and `rhs` and stores ${result} in `lhs`, trapping in
|
||||
/// case of arithmetic overflow (except in -Ounchecked builds).
|
||||
@_transparent
|
||||
public func ${op}= <T : _IntegerArithmeticType>(inout lhs: T, rhs: T) {
|
||||
public func ${op}= <T : _IntegerArithmeticType>(lhs: inout T, rhs: T) {
|
||||
lhs = lhs ${op} rhs
|
||||
}
|
||||
% end
|
||||
|
||||
Reference in New Issue
Block a user