Enabling the InferSendableFromCaptures upcoming feature flag can break code that involves C functions #73313
Labels
bug
A deviation from expected or documented behavior. Also: expected but undesirable behavior.
concurrency
Feature: umbrella label for concurrency language features
Description
When I enable the upcoming feature flag
InferSendableFromCaptures
(from SE-0418), the Swift 6 compiler emits errors:Those errors are not emitted when
InferSendableFromCaptures
is not enabled.Reproduction
Expected behavior
No compiler error.
Environment
Additional information
I've been using this technique for many years, with great success, inspired by this post on the Swift forums.
The text was updated successfully, but these errors were encountered: