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,6 @@
// expect: reject E7005
// phase: 6
// spec: docs/spec/15-source-language.md §5/§10; docs/spec/07-air.md §8.8
module test.array_literals
fn unused(p: own_array<u64>) -> void effects [] { let a = [move p; 2]; trap; }
fn main() -> void effects [] {}