mirror of
https://github.com/apple/swift.git
synced 2025-12-14 20:36:38 +01:00
Foundation: Provide a Hashable.hashValue witness for _BridgedStoredNSError conformers
Previously we would synthesize this in Sema, but this no longer works when conformance checking is triggered by SILGen.
This commit is contained in:
@@ -489,6 +489,10 @@ extension _BridgedStoredNSError {
|
||||
public func hash(into hasher: inout Hasher) {
|
||||
hasher.combine(_nsError)
|
||||
}
|
||||
|
||||
@_alwaysEmitIntoClient public var hashValue: Int {
|
||||
return _nsError.hashValue
|
||||
}
|
||||
}
|
||||
|
||||
/// Describes the code of an error.
|
||||
|
||||
Reference in New Issue
Block a user