Can't enqueue main-actor-isolated async func directly with addTask #76488
Labels
bug
A deviation from expected or documented behavior. Also: expected but undesirable behavior.
triage needed
This issue needs more specific labels
Description
In the below example, the call to
addTask
which callsh
give a concurrency warning that seems incorrect. The given error is:Am I missing something about why this is not allowable in the general case?
Reproduced on godbolt nightly but have seen the same/similar issue adopting Swift 6.0
Reproduction
Expected behavior
Both calls to
addTask
compile without warning.Environment
Additional information
No response
The text was updated successfully, but these errors were encountered: