This code:
void main()
{
const(char)* type = true ? "main" : null;
}
Gives this error:
testx.d(4): Error: cannot implicitly convert expression ("main") of type string to const(char)*
Even though both expressions can implicitly convert to const(char)*
Comment #1 by robert.schadek — 2024-12-13T18:06:15Z