Comment #0 by bearophile_hugs — 2014-05-29T12:30:31Z
I am not sure, but perhaps both functions should compile:
immutable(string)[] foo() pure {
char[][] a;
return a; // OK
}
string[] bar() pure {
char[][] b;
return b; // Error
}
void main() {}
DMD 2.066alpha gives:
test.d(7,12): Error: cannot implicitly convert expression (b) of type char[][] to string[]
Comment #1 by robert.schadek — 2024-12-13T18:21:10Z