We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent ee88950 commit 5af359bCopy full SHA for 5af359b
Foundation/NSDictionary.swift
@@ -586,8 +586,7 @@ open class NSMutableDictionary : NSDictionary {
586
guard type(of: self) === NSDictionary.self || type(of: self) === NSMutableDictionary.self else {
587
NSRequiresConcreteImplementation()
588
}
589
- let aKey = (aKey as? NSObject) ?? NSString(string: aKey as! String)
590
- _storage[aKey] = _SwiftValue.store(anObject)
+ _storage[_SwiftValue.store(aKey)] = _SwiftValue.store(anObject)
591
592
593
public convenience required init() {
0 commit comments