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

[email protected] changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|RESOLVED                    |REOPENED
                 CC|                            |[email protected]
         Resolution|FIXED                       |---

--- Comment #6 from [email protected] ---
Is this supposed to work now ?


void main()
{
    int[][] arr = void;
    arr.length = 10;

    version(all)
    {
        import std.algorithm.iteration : each;
        arr.each!((ref a){a.length = 10; a[] = -1;});
    }
    else
    {
        foreach(ref a; arr)
        {
            a.length = 10;
            a[] = -1;
        }
    }
}

--

Reply via email to