Skip to content

Commit 05c23ea

Browse files
itaiferberphausler
authored andcommitted
Re-type CachedURLResponse's userInfo to match what is exported by Foundation (#510)
1 parent 3b05d8b commit 05c23ea

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

Foundation/NSURLCache.swift

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -90,7 +90,7 @@ open class CachedURLResponse : NSObject, NSSecureCoding, NSCopying {
9090
@param storagePolicy an NSURLCacheStoragePolicy constant.
9191
@result an initialized NSCachedURLResponse.
9292
*/
93-
public init(response: URLResponse, data: Data, userInfo: [NSObject : AnyObject]? = [:], storagePolicy: URLCache.StoragePolicy) { NSUnimplemented() }
93+
public init(response: URLResponse, data: Data, userInfo: [AnyHashable : Any]? = [:], storagePolicy: URLCache.StoragePolicy) { NSUnimplemented() }
9494

9595
/*!
9696
@method response
@@ -111,7 +111,7 @@ open class CachedURLResponse : NSObject, NSSecureCoding, NSCopying {
111111
@abstract Returns the userInfo dictionary of the receiver.
112112
@result The userInfo dictionary of the receiver.
113113
*/
114-
open var userInfo: [NSObject : AnyObject]? { NSUnimplemented() }
114+
open var userInfo: [AnyHashable : Any]? { NSUnimplemented() }
115115

116116
/*!
117117
@method storagePolicy

0 commit comments

Comments
 (0)