[SR-2847] Strings should not be able to be bridged to NSString when Foundation is not imported #45441
Labels
affects ABI
Flag: Affects ABI
feature
A feature request or implementation
runtime
The Swift Runtime
SDKOverlay
standard library
Area: Standard library umbrella
Additional Detail from JIRA
md5: 6451cacb0a3ffe168105c8113d92efdc
Issue Description:
See https://ci.swift.org/job/swift-PR-osx/3925/consoleFull#106371907ee1a197b-acac-4b17-83cf-a53b95139a76 for the failure in question when attempting to move parts of the bridge into the Foundation overlay.
Any application that is linking Foundation should get the bridgeable behavior and any application that is not importing Foundation should not be getting bridging behavior. This poses a distinct inconsistency with the requested model of the application as well as it can potentially set up the developer for a possible failure when porting to linux.
This is borderline between a bug and a feature request. It should be categorized appropriately.
Fixing this would be a breaking change for applications that are implicitly requiring this behavior so this has a potential ABI and source compatibility impact.
The text was updated successfully, but these errors were encountered: