File tree Expand file tree Collapse file tree 2 files changed +5
-0
lines changed
stdlib/public/SDK/Foundation Expand file tree Collapse file tree 2 files changed +5
-0
lines changed Original file line number Diff line number Diff line change @@ -400,6 +400,10 @@ public extension _BridgedStoredNSError
400
400
code: numericCast ( code. rawValue) ,
401
401
userInfo: userInfo) )
402
402
}
403
+
404
+ /// The user-info dictionary for an error that was bridged from
405
+ /// NSError.
406
+ var userInfo : [ String : AnyObject ] { return errorUserInfo }
403
407
}
404
408
405
409
/// Various helper implementations for _BridgedStoredNSError
Original file line number Diff line number Diff line change @@ -177,6 +177,7 @@ ErrorBridgingTests.test("NSError-to-enum bridging") {
177
177
case let error as CLError :
178
178
isCLError = true
179
179
expectOptionalEqual ( testURL, ( error as NSError ) . userInfo [ NSURLErrorKey] as? URL )
180
+ expectOptionalEqual ( testURL, error. userInfo [ NSURLErrorKey] as? URL )
180
181
default :
181
182
isCLError = false
182
183
}
You can’t perform that action at this time.
0 commit comments