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

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


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

b2.temp at gmx.com changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |b2.temp at gmx.com

--- Comment #2 from b2.temp at gmx.com ---
void f(wchar[] s)
{
    s[]="a"w;
} 

works. 

Obviously in the original example it fails because of the encoding of the
literal and the one of the target variable is not the same.

Did it use to work ? (even with IDEone, dmd 2.067, it fails).

--


More information about the Digitalmars-d-bugs mailing list