Skip to content

Commit 1576958

Browse files
committed
Fix another case of potential overload ambiguity.
Apply the same fix that went into d9cdc7e to another location. After an upcoming type checker change the previous code would be considered ambiguous.
1 parent 446cfc5 commit 1576958

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Foundation/NSCFDictionary.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@ internal final class _NSCFDictionary : NSMutableDictionary {
3939
override func object(forKey aKey: Any) -> Any? {
4040
let value = CFDictionaryGetValue(_cfObject, unsafeBitCast(_SwiftValue.store(aKey), to: UnsafeRawPointer.self))
4141
if value != nil {
42-
return _SwiftValue.fetch(unsafeBitCast(value, to: AnyObject.self))
42+
return _SwiftValue.fetch(unsafeBitCast(value, to: AnyObject.self) as AnyObject?)
4343
} else {
4444
return nil
4545
}

0 commit comments

Comments
 (0)