Title: Component: dmd Severity: Code number: Keywords: Outcome: Is done: no See also: I am not sure this is a but, it seems like one: void main() { bool test; string s1 = test ? "" : null; // OK dstring s2 = test ? ""d : null; // OK dstring s3 = test ? "" : ""; // OK dstring s4 = test ? "" : null; // error dstring[] a = test ? [""d] : null; // OK dstring[] b = test ? [""] : null; // error } dmd 2.065alpha gives: temp.d(6): Error: cannot implicitly convert expression (test ? "" : null) of type string to immutable(dchar)[] temp.d(8): Error: cannot implicitly convert expression (test ? [""] : null) of type string[] to immutable(dchar)[][]
First one is similar to issue 9968.
THIS ISSUE HAS BEEN MOVED TO GITHUB https://github.com/dlang/dmd/issues/18737 DO NOT COMMENT HERE ANYMORE, NOBODY WILL SEE IT, THIS ISSUE HAS BEEN MOVED TO GITHUB