www.digitalmars.com         C & C++   DMDScript  

digitalmars.D.bugs - [Issue 15778] New: polysemous string type doesn't work in array

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 puremagic.com
          Reporter: dfj1esp02 sneakemail.com

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

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

--
Mar 08 2016