frontend: validate unknown effect names before body lowering

This commit is contained in:
dev committed 2026-10-08 14:49:49 +03:00
1 parent 4c9c5626c9
commit 762c5abe7b
40 files changed
+335 -9

No files matched your search

@@ -0,0 +1,6 @@
// expect: reject E3101
// phase: 6
// spec: docs/spec/05-effects-and-capabilities.md §9.2
module test.effects.flat_effects
fn worker() -> u64 effects [atomic.weak] { return 42; }
fn main() -> u64 effects [atomic] { return worker(); }