Multi-dimensional array after `params` only generates cc error
Consider the following code (params-multi.vala), if we make the array after params
a multi-dimensional array
void foo (params int[,] x) {
print("%d\n", x.length[0]);
}
void main () {
foo (1, 1, 2, 3);
}
Only a cc errors is generated, which is
params-multi.vala.c:41:38: error: ‘_x_size_’ undeclared (first use in this function); did you mean ‘__ssize_t’?
41 | _vala_array_add1 (&x, &x_length1, &_x_size_, _x_element);
| ^~~~~~~~
| __ssize_t
I think it would be better if a valac error is generated? For example, "Multi-dimensional array is not supported for params-array".