Summary: Appending enum string causes type change?
           Product: D
           Version: D2
          Platform: All
        OS/Version: All
            Status: NEW
          Severity: normal
          Priority: P2
         Component: DMD

--- Comment #0 from Justin Whear <> 2012-01-30 
15:17:00 PST ---
This program:

enum TEST = "test";

string valid = "this is a " ~ TEST;
char[] sabotage = cast( char[] )"this is a " ~ TEST;
string no_longer_valid = "this is a " ~ TEST; 

void main() {}

Fails to compile with this error:
Error: cannot implicitly convert expression ("this is a test") of type char[]
to string

Commenting out the "char[] sabotage..." allows the program to compile.

Configure issuemail:
------- You are receiving this mail because: -------

Reply via email to