www.digitalmars.com         C & C++   DMDScript  

digitalmars.D.bugs - [Issue 2169] New: Can't concat non-char[] string literal and char literal

http://d.puremagic.com/issues/show_bug.cgi?id=2169

           Summary: Can't concat non-char[] string literal and char literal
           Product: D
           Version: 1.031
          Platform: PC
        OS/Version: Windows
            Status: NEW
          Keywords: rejects-valid
          Severity: normal
          Priority: P2
         Component: DMD
        AssignedTo: bugzilla digitalmars.com
        ReportedBy: jarrett.billingsley gmail.com


auto x = "foo"w ~ 'x';
auto y = "foo"d ~ 'x';
auto z = 'x' ~ "foo"w;
auto w = 'x' ~ "foo"d;

All four give an error about not being able to concat a w/dchar[] with an int
(int?!).  Pretty amazing.


-- 
Jun 24 2008