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.same_mut_twice
// AIR twin: phase3/reject/tasks_same_mut_twice.air
fn bump(s: slice_mut<u64>) -> void
effects []
@@ -18,7 +19,7 @@ effects [task.spawn]
mut s = buf;
scope sc {
let a = task.spawn(sc, bump, s);
let b = task.spawn(sc, bump, s);
let b = task.spawn(sc, bump, s); // diagnostic here: task.spawn
task.join(move a);
task.join(move b);
}