www.digitalmars.com         C & C++   DMDScript  

digitalmars.D.bugs - [Issue 16010] New: [ndslice] byElement throw assert error

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

          Issue ID: 16010
           Summary: [ndslice] byElement throw assert error
           Product: D
           Version: D2
          Hardware: All
                OS: All
            Status: NEW
          Severity: normal
          Priority: P1
         Component: phobos
          Assignee: nobody puremagic.com
          Reporter: ilyayaroshenko gmail.com

unittest
{
    auto s = iotaSlice(3, 4).byElement;
    foreach(_; 0 .. s.length)
        s = s[1 .. $];
}

--
May 10 2016