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,11 +3,12 @@
// phase: 6
// spec: docs/spec/15-source-language.md
module demo.receiver_leak
// AIR twin: phase3/reject/channels_receiver_leak.air
fn main(heap: cap<mem.alloc>) -> u64
effects [mem.alloc, task.wait]
{
match channel.make<u64>(1, heap) {
match channel.make<u64>(1, heap) { // diagnostic here
ok(tx, rx) => {
channel.close_sender(move tx);
0