void main(){
int[2][] foo = [[1,1]]; // ok
int[2][] bar = foo ~ [[1,1]]; // compile error
}
In the first case the compiler automatically figures out how to type the array literal. The second line should compile too.
Comment #1 by robert.schadek — 2024-12-13T17:56:59Z