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: reject E7006
|
||||
// phase: 6
|
||||
// spec: docs/spec/15-source-language.md §5/§10
|
||||
module test.array_literals
|
||||
fn bad<T>(x: T) -> void effects [] { let a = [x, x]; }
|
||||
fn use(p: ref<u64>) -> void effects [] { bad::<ref<u64>>(p); }
|
||||
fn main() -> void effects [] {}
|
||||
Reference in new issue
Block a user