[Swift 6] No diagnostic when explicitly capturing a non-sendable value #79815
Labels
bug
A deviation from expected or documented behavior. Also: expected but undesirable behavior.
triage needed
This issue needs more specific labels
Description
When explicitly capturing a non-sendable value in a Task closure, no diagnostic is raised.
Reproduction
Expected behavior
A data race diagnostic should most likely be raised even when
value
is manually captured in the task closure.Environment
swift-driver version: 1.115 Apple Swift version 6.0.2 (swiftlang-6.0.2.1.2 clang-1600.0.26.4)
Target: arm64-apple-macosx15.0
Additional information
Swift forums question: https://forums.swift.org/t/task-capture-list-silence-data-race-error/78275
The text was updated successfully, but these errors were encountered: