Skip to content

Commit 2eaae45

Browse files
committed
Sema: Go back to synthesizing hashValue on _StoredBridgedNSError conformers
Commit 22294f2 added a default implementation, however this is wrong for non-imported types. Instead, synthesize the body as before. Since this is one of the few derived methods that can appear on an imported type, make sure to build fully type-checked AST. Fixes <rdar://problem/51322302>.
1 parent e231a0e commit 2eaae45

File tree

1 file changed

+0
-4
lines changed

1 file changed

+0
-4
lines changed

Darwin/Foundation-swiftoverlay/NSError.swift

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -489,10 +489,6 @@ extension _BridgedStoredNSError {
489489
public func hash(into hasher: inout Hasher) {
490490
hasher.combine(_nsError)
491491
}
492-
493-
@_alwaysEmitIntoClient public var hashValue: Int {
494-
return _nsError.hashValue
495-
}
496492
}
497493

498494
/// Describes the code of an error.

0 commit comments

Comments
 (0)