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: run
// result: 42
// phase: 6
// spec: docs/spec/15-source-language.md §5/§10
module test.array_literals
fn first(p: slice<u64>) -> u64 effects [] { return p[0]; }
fn main() -> u64 effects [] { let a = [21u64, 21u64]; let b = [21u64; 2]; return first(ref a) + first(ref b); }