Closed
Description
Description
Potential compiler bug… looks like this should not be a warning.
Reproduction
func f<S>(_ s: S) throws
where S: AsyncSequence & Sendable {
Task {
for try await i in s {
// ^ Capture of non-sendable type 'S.AsyncIterator.Type' in an isolated closure
}
}
}
Environment
swift-driver version: 1.127.5.3 Apple Swift version 6.2 (swiftlang-6.2.0.10.950 clang-1700.3.10.950)
Target: arm64-apple-macosx15.0