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

           Summary: Can't implicitly convert from "abc"w to wchar[3]
           Product: D
           Version: D1 & D2
          Platform: Other
        OS/Version: Windows
            Status: NEW
          Keywords: rejects-valid
          Severity: normal
          Priority: P2
         Component: DMD
        AssignedTo: nob...@puremagic.com
        ReportedBy: clugd...@yahoo.com.au


--- Comment #0 from Don <clugd...@yahoo.com.au> 2010-11-15 13:09:39 PST ---
... though you can with char. This code also worked in D1.
---
void bug5218c(char [3] s) {}
void bug5218w(wchar [3] s) {}
void bug5218d(dchar [3] s) {}

void main()
{    
    bug5218c("abc");
    bug5218w("abc"w);
    bug5218d("abc"d);
}

-- 
Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email
------- You are receiving this mail because: -------

Reply via email to