mirror of
https://github.com/c3lang/c3c.git
synced 2026-02-27 12:01:16 +00:00
Fixed issues inferring length with subarrays. Removed old, non-working example. Infer length in the case of subarray literals.
This commit is contained in:
5
test/test_suite/arrays/inferred_subarray.c3
Normal file
5
test/test_suite/arrays/inferred_subarray.c3
Normal file
@@ -0,0 +1,5 @@
|
||||
fn void main()
|
||||
{
|
||||
int[*][*][] x = int[2][1][] { { { 1, 2 } } };
|
||||
int[*][*][*] y = int[2][1][] { { { 1, 2 } } };
|
||||
}
|
||||
Reference in New Issue
Block a user