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: accept
|
||||
// phase: 6
|
||||
// spec: docs/spec/15-source-language.md §5/§10
|
||||
module test.array_literals
|
||||
struct Node { value: own<u64> }
|
||||
fn unused(a: iref<Node>, b: iref<Node>, cap: cap<mem.alloc>) -> void effects [] { let refs = [a, b]; let repeated = [a; 2]; let caps = [cap; 2]; }
|
||||
fn main() -> void effects [] {}
|
||||
Reference in new issue
Block a user