tests: extend rejection twins across public semantic features

This commit is contained in:
dev committed 2026-10-08 19:14:12 +03:00
1 parent 272aebfd32
commit 06d8a1a76a
32 files changed
+396 -22

No files matched your search

@@ -0,0 +1,10 @@
// channel.recv lacks task.wait on a borrowed receiver parameter; no allocation adds another missing effect.
// expect: reject E3101
// phase: 6
// spec: docs/spec/04-concurrency-and-atomics.md
// AIR twin: phase3/reject/channels_recv_without_effect.air
module test.source_recv_without_effect
fn f(rx: mut<receiver<u64>>) -> u64 effects [] {
channel.recv(rx) or trap // diagnostic here: channel.recv
}
fn main() -> u64 effects [] { return 0u64; }