tests: extend audited rejection twins through tasks and locks

This commit is contained in:
dev committed 2026-10-08 18:12:53 +03:00
1 parent e4aacef48c
commit 272aebfd32
16 files changed
+157 -13

No files matched your search

@@ -3,6 +3,7 @@
// phase: 6
// spec: docs/spec/15-source-language.md
module demo.lock_twice
// AIR twin: phase3/reject/sync_lock_twice.air
fn main() -> u64
effects [task.wait]
@@ -10,7 +11,7 @@ effects [task.wait]
let a = mutex.make(0u64);
let b = mutex.make(0u64);
lock ref a as x {
lock ref b as y {
lock ref b as y { // diagnostic here
*y = *x;
} cancelled {}
} cancelled {}