Swift 6.2 emits "Capture of non-sendable type" warning incorrectly when declaring closure that captures generic type #82133
Labels
bug
A deviation from expected or documented behavior. Also: expected but undesirable behavior.
triage needed
This issue needs more specific labels
Description
Swift 6.2 seems to be incorrectly warning when referencing a generic type in a closure
Reproduction
Expected behavior
No warning emitted
Environment
Apple Swift version 6.2 (swiftlang-6.2.0.9.909 clang-1700.3.9.907)
Target: arm64-apple-macosx15.0
/Applications/Xcode-26.0.0-Beta.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/swift-help intro
Additional information
No response
The text was updated successfully, but these errors were encountered: