Skip to content

Commit 13c50b6

Browse files
author
David Dunn
committed
Stub out value(forKey key: String)
1 parent 0df8945 commit 13c50b6

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

Foundation/NSDictionary.swift

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -32,6 +32,10 @@ open class NSDictionary : NSObject, NSCopying, NSMutableCopying, NSSecureCoding,
3232
return nil
3333
}
3434

35+
open func value(forKey key: String) -> Any? {
36+
NSUnsupported()
37+
}
38+
3539
open func keyEnumerator() -> NSEnumerator {
3640
guard type(of: self) === NSDictionary.self || type(of: self) === NSMutableDictionary.self else {
3741
NSRequiresConcreteImplementation()

0 commit comments

Comments
 (0)