[Issue 9570] Wrong foreach index implicit conversion error

via Digitalmars-d-bugs digitalmars-d-bugs at puremagic.com
Wed May 21 13:17:18 PDT 2014


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

--- Comment #4 from bearophile_hugs at eml.cc ---
(In reply to Lionello Lunesu from comment #3)
> https://github.com/D-Programming-Language/dmd/pull/3567

Is this supported?

void main() {
    ubyte[256] data;
    foreach (ubyte i, ref x; data)
        x = i;
}

--


More information about the Digitalmars-d-bugs mailing list