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:
Slava Pestov
2019-05-17 17:16:03 -04:00
parent 4038781f84
commit e0bba70923

View File

@@ -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.