www.digitalmars.com         C & C++   DMDScript  

digitalmars.D.bugs - [Issue 16246] New: cannot call iota with 3 [u]bytes or 3 [u]shorts

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

          Issue ID: 16246
           Summary: cannot call iota with 3 [u]bytes or 3 [u]shorts
           Product: D
           Version: D2
          Hardware: All
               URL: http://dlang.org/
                OS: All
            Status: NEW
          Severity: enhancement
          Priority: P3
         Component: phobos
          Assignee: nobody puremagic.com
          Reporter: eyal weka.io

void main() {
    import std.range:iota;
    ushort start = 0, end = 10, step = 2;
    foreach(i; iota(start, end, step)) {}
}

Fails to build.

--
Jul 07 2016