@@ -568,6 +568,10 @@ public struct CocoaError : _BridgedStoredNSError {
568
568
569
569
public static var errorDomain : String { return NSCocoaErrorDomain }
570
570
571
+ public var hashValue : Int {
572
+ return _nsError. hashValue
573
+ }
574
+
571
575
/// The error code itself.
572
576
public struct Code : RawRepresentable , Hashable , _ErrorCodeProtocol {
573
577
public typealias _ErrorType = CocoaError
@@ -1795,6 +1799,10 @@ public struct URLError : _BridgedStoredNSError {
1795
1799
1796
1800
public static var errorDomain : String { return NSURLErrorDomain }
1797
1801
1802
+ public var hashValue : Int {
1803
+ return _nsError. hashValue
1804
+ }
1805
+
1798
1806
/// The error code itself.
1799
1807
public struct Code : RawRepresentable , Hashable , _ErrorCodeProtocol {
1800
1808
public typealias _ErrorType = URLError
@@ -2451,6 +2459,10 @@ public struct POSIXError : _BridgedStoredNSError {
2451
2459
2452
2460
public static var errorDomain : String { return NSPOSIXErrorDomain }
2453
2461
2462
+ public var hashValue : Int {
2463
+ return _nsError. hashValue
2464
+ }
2465
+
2454
2466
public typealias Code = POSIXErrorCode
2455
2467
}
2456
2468
@@ -2937,6 +2949,10 @@ public struct MachError : _BridgedStoredNSError {
2937
2949
2938
2950
public static var errorDomain : String { return NSMachErrorDomain }
2939
2951
2952
+ public var hashValue : Int {
2953
+ return _nsError. hashValue
2954
+ }
2955
+
2940
2956
public typealias Code = MachErrorCode
2941
2957
}
2942
2958
0 commit comments