We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 5bb619b commit 8d4b6a5Copy full SHA for 8d4b6a5
Foundation/Bridging.swift
@@ -150,16 +150,14 @@ internal final class _SwiftValue : NSObject, NSCopying {
150
// as if we returned the unboxed value directly.
151
}
152
153
- // On Linux, case 2 is handled below, and case 3 can't happen —
+ // On Linux, case 2 is handled by the stdlib bridging machinery, and case 3 can't happen —
154
// the compiler will produce SwiftFoundation._SwiftValue boxes rather than ObjC ones.
155
#endif
156
157
if object === kCFBooleanTrue {
158
return true
159
} else if object === kCFBooleanFalse {
160
return false
161
- } else if type(of: object) == NSNull.self {
162
- return Optional<Any>.none as Any
163
} else if let container = object as? _SwiftValue {
164
return container.value
165
} else if let val = object as? _StructBridgeable {
0 commit comments