Runtime data race checker triggered for function-wrapper around withCheckedContinuation
#62223
Labels
bug
A deviation from expected or documented behavior. Also: expected but undesirable behavior.
compiler
The Swift compiler in itself
concurrency
Feature: umbrella label for concurrency language features
Description
Compile following snipped of code:
Steps to reproduce
Compile snipped of code with compiler flargs
-Xfrontend -enable-actor-data-race-checks -warn-concurrency
Expected behavior
Both
withCheckedVoidContinuationBad
andwithCheckedVoidContinuationGood
either compiled or rejected to compile.Actual behavior
Runtime data race checker reports an error:
Environment
swift-DEVELOPMENT-SNAPSHOT-2022-11-19-a.xctoolchain
The text was updated successfully, but these errors were encountered: