[indent=4]
init
x: array of int = {1, 2, 3}
y: array of int = {4, 5, 6}
z: array of int = x + y
The above code produces this error message:
concat_arrays.gs:6.23-6.27: error: Incompatible operand
z: array of int = x + y
The Vala translation doesn't work any better:
int main () {
int[] x = {1, 2, 3};
int[] y = {4, 5, 6};
int[] z = x + y;
return 0;
}
The error message is:
concat_arrays_v.vala:4.15-4.19: error: Incompatible operand
int[] z = x + y;
What is the correct way to do this?