frontend: validate unknown effect names before body lowering
This commit is contained in:
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(); }
|
||||
Reference in new issue
Block a user