Skip to content

Commit dad9b75

Browse files
committed
---
yaml --- r: 340349 b: refs/heads/rxwei-patch-1 c: 67fd1f2 h: refs/heads/master i: 340347: 35acc4b
1 parent ab1afc8 commit dad9b75

File tree

2 files changed

+17
-1
lines changed

2 files changed

+17
-1
lines changed

[refs]

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1015,7 +1015,7 @@ refs/tags/swift-DEVELOPMENT-SNAPSHOT-2018-08-18-a: b10b1fce14385faa6d44f6b933e95
10151015
refs/heads/rdar-43033749-fix-batch-mode-no-diags-swift-5.0-branch: a14e64eaad30de89f0f5f0b2a782eed7ecdcb255
10161016
refs/heads/revert-19006-error-bridging-integer-type: 8a9065a3696535305ea53fe9b71f91cbe6702019
10171017
refs/heads/revert-19050-revert-19006-error-bridging-integer-type: ecf752d54b05dd0a20f510f0bfa54a3fec3bcaca
1018-
refs/heads/rxwei-patch-1: 3491fecc04e1f6ff22fc12d788c7b05d830089fe
1018+
refs/heads/rxwei-patch-1: 67fd1f23729772fede230f089a5a87f7023047fe
10191019
refs/heads/shahmishal-patch-1: e58ec0f7488258d42bef51bc3e6d7b3dc74d7b2a
10201020
refs/heads/typelist-existential: 4046359efd541fb5c72d69a92eefc0a784df8f5e
10211021
refs/tags/swift-4.2-DEVELOPMENT-SNAPSHOT-2018-08-20-a: 4319ba09e4fb8650ee86061075c74a016b6baab9

branches/rxwei-patch-1/stdlib/public/Darwin/Foundation/NSError.swift

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -568,6 +568,10 @@ public struct CocoaError : _BridgedStoredNSError {
568568

569569
public static var errorDomain: String { return NSCocoaErrorDomain }
570570

571+
public var hashValue: Int {
572+
return _nsError.hashValue
573+
}
574+
571575
/// The error code itself.
572576
public struct Code : RawRepresentable, Hashable, _ErrorCodeProtocol {
573577
public typealias _ErrorType = CocoaError
@@ -1795,6 +1799,10 @@ public struct URLError : _BridgedStoredNSError {
17951799

17961800
public static var errorDomain: String { return NSURLErrorDomain }
17971801

1802+
public var hashValue: Int {
1803+
return _nsError.hashValue
1804+
}
1805+
17981806
/// The error code itself.
17991807
public struct Code : RawRepresentable, Hashable, _ErrorCodeProtocol {
18001808
public typealias _ErrorType = URLError
@@ -2451,6 +2459,10 @@ public struct POSIXError : _BridgedStoredNSError {
24512459

24522460
public static var errorDomain: String { return NSPOSIXErrorDomain }
24532461

2462+
public var hashValue: Int {
2463+
return _nsError.hashValue
2464+
}
2465+
24542466
public typealias Code = POSIXErrorCode
24552467
}
24562468

@@ -2937,6 +2949,10 @@ public struct MachError : _BridgedStoredNSError {
29372949

29382950
public static var errorDomain: String { return NSMachErrorDomain }
29392951

2952+
public var hashValue: Int {
2953+
return _nsError.hashValue
2954+
}
2955+
29402956
public typealias Code = MachErrorCode
29412957
}
29422958

0 commit comments

Comments
 (0)