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,8 @@
// expect: run
// result: 42
// phase: 6
// spec: docs/spec/15-source-language.md §18
module test.effects.static_valid
fn worker() -> u64 effects [atomic.weak, atomic] { return 42; }
fn apply<F: fn() -> u64 effects [atomic, atomic.weak]>() -> u64 effects [atomic, atomic.weak] { return F(); }
fn main() -> u64 effects [atomic, atomic.weak] { return apply::<fn worker>(); }