Closed orobio closed 5 months ago
For a Sendable opaque return type, the compiler allows the actual type to be non-Sendable.
Sendable
extension AsyncSequence { func makeSendable() -> some (AsyncSequence<Element, Failure> & Sendable) { self } }
Depending on checking level, an error or warning should be emitted indicating that Self is not Sendable.
nightly-6.0-jammy: swift-6.0-DEVELOPMENT-SNAPSHOT-2024-04-06-a
Swift version 6.0-dev (LLVM c7c963afc327ad1, Swift bca5018bca30ddf)
Tested with both -strict-concurrency=complete and -swift-version 6.
No response
This is fixed in https://github.com/apple/swift/pull/73697
Description
For a
Sendable
opaque return type, the compiler allows the actual type to be non-Sendable
.Reproduction
Expected behavior
Depending on checking level, an error or warning should be emitted indicating that Self is not
Sendable
.Environment
nightly-6.0-jammy: swift-6.0-DEVELOPMENT-SNAPSHOT-2024-04-06-a
Swift version 6.0-dev (LLVM c7c963afc327ad1, Swift bca5018bca30ddf)
Tested with both -strict-concurrency=complete and -swift-version 6.
Additional information
No response