cli: check inferred array elements before AIR
This commit is contained in:
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
|
||||
struct Item { value: u64 }
|
||||
fn main() -> u64 effects [] { let values = [[Item { value: 21u64 }; 2]; 3]; ref r = values; return r[0][0].value + r[2][1].value; }
|
||||
Reference in new issue
Block a user