cli: check inferred array elements before AIR

This commit is contained in:
dev committed 2026-10-08 09:26:33 +03:00
1 parent cfbe01a16f
commit 1bbfed24a8
40 files changed
+337 -9

No files matched your search

@@ -0,0 +1,7 @@
// expect: reject E7006
// phase: 6
// spec: docs/spec/15-source-language.md §5/§10
module test.array_literals
fn read(p: slice<u64>) -> u64 effects [] { return p[0]; }
fn unused(p: ref<u64>) -> void effects [] { let x = read([p, p]); }
fn main() -> void effects [] {}