; Unlocking first, then waiting, is accepted. ; expect: accept ; phase: 3 ; spec: docs/spec/04-concurrency-and-atomics.md module test.sync_unlock_then_wait air 0 lang 0.1 features [cancellation, effects, ownership, sync, tasks] fn @f(%a: ref>, %b: ref>) -> void effects [task.wait] entry: mutex.lock %a, ok -> @la, cancelled -> @out la(%ga: guard): mutex.unlock %ga mutex.lock %b, ok -> @lb, cancelled -> @out lb(%gb: guard): mutex.unlock %gb ret out: ret