Any vs. any Sendable discrepancies are marked as errors for uses of inout properties #79361
Labels
bug
A deviation from expected or documented behavior. Also: expected but undesirable behavior.
Concurrencу
Area → standard library: The `Concurrency` module under the standard library umbrella
concurrency
Feature: umbrella label for concurrency language features
expressions
Feature: expressions
@preconcurrency
Feature → attributes: The @preconcurrency attribute
Sendable
Area → standard library: The Sendable protocol
Description
When calling a function with an
inout
property, if the type of the value provided mismatches due toSendable
conformances (even if the provided variable is@preconcurrency
the mismatch is diagnosed as an error even in Swift 5 mode.Reproduction
Expected behavior
I'd expect this to be a warning in Swift 5 mode for clients not opting into strict concurrency checking
Environment
Tested with a reason Swift 6.1 development snapshot
Additional information
No response
The text was updated successfully, but these errors were encountered: