[Issue 5218] New: Can't implicitly convert from "abc"w to wchar[3]

d-bugmail at puremagic.com d-bugmail at puremagic.com
Mon Nov 15 13:10:50 PST 2010


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: nobody at puremagic.com
        ReportedBy: clugdbug at yahoo.com.au


--- Comment #0 from Don <clugdbug at 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: -------


More information about the Digitalmars-d-bugs mailing list