https://issues.dlang.org/show_bug.cgi?id=13453

          Issue ID: 13453
           Summary: Allow appending string literal to any width string
           Product: D
           Version: D2
          Hardware: All
                OS: All
            Status: NEW
          Severity: enhancement
          Priority: P1
         Component: DMD
          Assignee: [email protected]
          Reporter: [email protected]

With issue 7942 soon to be fixed, this code will no longer compile (previously
it generated wrong code).

void main()
{
    wstring x;
    x ~= "hello";
}

The string literal can be converted to the correct width at compile time, and
should probably be supported.

--

Reply via email to