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,8 @@
|
||||
// expect: run
|
||||
// phase: 6
|
||||
// spec: docs/spec/15-source-language.md §9, §18
|
||||
// result: 42
|
||||
module test.effects.duplicates
|
||||
fn worker() -> u64 effects [atomic, atomic] { return 42; }
|
||||
fn identity<T: Copy>(x: T) -> T effects [atomic, atomic] { return x; }
|
||||
fn main() -> u64 effects [atomic, atomic] { return identity::<u64>(worker()); }
|
||||
Reference in new issue
Block a user