[Issue 15778] New: polysemous string type doesn't work in array operation

via Digitalmars-d-bugs digitalmars-d-bugs at puremagic.com
Tue Mar 8 11:33:11 PST 2016


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

          Issue ID: 15778
           Summary: polysemous string type doesn't work in array operation
           Product: D
           Version: D2
          Hardware: All
                OS: All
            Status: NEW
          Severity: regression
          Priority: P1
         Component: dmd
          Assignee: nobody at puremagic.com
          Reporter: dfj1esp02 at sneakemail.com

void f(wchar[] s)
{
    s[]="a";
}

Error: cannot implicitly convert expression ("a") of type string to wchar[]

--


More information about the Digitalmars-d-bugs mailing list