mirror of
https://github.com/apple/swift.git
synced 2025-12-21 12:14:44 +01:00
Use @inout result convention for mutate accessors
This commit is contained in:
@@ -488,8 +488,8 @@ public enum ArgumentConvention : CustomStringConvertible {
|
||||
self = .directUnowned
|
||||
case .pack:
|
||||
self = .packOut
|
||||
case .guaranteed, .guaranteedAddress:
|
||||
fatalError("Result conventions @guaranteed and @guaranteed_addr are always returned directly")
|
||||
case .guaranteed, .guaranteedAddress, .inout:
|
||||
fatalError("Result conventions @guaranteed, @guaranteed_addr and @inout are always returned directly")
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user