You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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[]
The text was updated successfully, but these errors were encountered:
bearophile_hugs reported this on 2014-05-29T12:30:31Z
Transferred from https://issues.dlang.org/show_bug.cgi?id=12819
Description
The text was updated successfully, but these errors were encountered: