tests: preserve rejection contexts and normalize callee effects

This commit is contained in:
dev committed 2026-10-08 19:41:01 +03:00
1 parent 06d8a1a76a
commit fd92604f36
11 files changed
+344 -35

No files matched your search

@@ -0,0 +1,11 @@
// The caller does not declare the effect of its callee.
// phase: 6
// spec: docs/spec/05-effects-and-capabilities.md §9.3
// expect: reject E3101
// AIR twin: phase2/reject/undeclared_effect.air
module test.source_undeclared_effect
fn emit() -> void effects [io.write] {}
fn f() -> void effects [] {
emit(); // diagnostic here
}
fn main() -> u64 effects [] { return 0u64; }