Deprecating multi-level array length inference. int[*][*] is deprecated and will be removed 0.8.0.

This commit is contained in:
Christoffer Lerno
2026-01-22 23:50:39 +01:00
parent 17f3db835c
commit ae5047b73f
14 changed files with 46 additions and 30 deletions

View File

@@ -30,6 +30,6 @@ fn void pointer_add_sub_diff()
assert(w == { -1, 2 });
int*[<2>] zz = y - (y - yy);
assert(zz[0] == &a[1] && zz[1] == &a[2]);
int[*]*[<2>] g = (int[2]*[<2>]) { null, null };
int[*]*[<*>] g2 = (int[2]*[<2>]) { null, null };
int[2]*[<2>] g = { null, null };
int[2]*[<2>] g2 = { null, null };
}