Closed nnabeyang closed 1 month ago
@swift-ci test
Thanks for this fix. We are strangely inconsistent about which bridging function is 'primary' for these types; sometimes it funnels to conditionally, sometimes unconditionally, sometimes none of the above.
This PR addresses an infinite loop issue that occurred when force casting
NSError
toCocoaError
. The problem arose because_forceBridgeFromObjectiveC
was calling_unconditionallyBridgeFromObjectiveC
, and in turn,_unconditionallyBridgeFromObjectiveC
was calling_forceBridgeFromObjectiveC
, causing a recursive loop.