Wrong error when passing sending
closure to TaskGroup
#76242
Labels
bug
A deviation from expected or documented behavior. Also: expected but undesirable behavior.
triage needed
This issue needs more specific labels
Description
The compiler produces an error when passing a
sending
closure to aTaskGroup
. However if you pass the same closure to aTask
this error does not pop up, which makes me think thatTaskGroup
s behavior is not correct.Reproduction
Expected behavior
No compiler error.
Environment
Apple Swift version 6.0-dev (LLVM c3efe9282719c35, Swift b163fed)
Target: arm64-apple-macosx14.0
Additional information
No response
The text was updated successfully, but these errors were encountered: