swift icon indicating copy to clipboard operation
swift copied to clipboard

[6.0] Look through `@Sendable` conversions when considering C function pointer conversions.

Open jckarter opened this issue 1 year ago • 1 comments

Explanation: Fixes an incorrect diagnostic when attempting to use a Swift function as a C function pointer in Swift 6 mode. Scope: Fixes a bug that may impact source compatibility and C interoperability when transitioning to Swift 6 mode or strict concurrency checking. Issue: rdar://127521718 Original PR: https://github.com/apple/swift/pull/73436 Risk: Low. This removes an incorrect error diagnostic in a fairly narrow situation. Testing: Test case from bug report, Swift CI Reviewer: TBD

jckarter avatar May 04 '24 00:05 jckarter

@swift-ci Please test

jckarter avatar May 04 '24 00:05 jckarter