digitalmars.D.bugs - [Issue 15717] New: iota: "Error: cannot implicitly convert
- via Digitalmars-d-bugs (26/26) Feb 23 2016 https://issues.dlang.org/show_bug.cgi?id=15717
https://issues.dlang.org/show_bug.cgi?id=15717 Issue ID: 15717 Summary: iota: "Error: cannot implicitly convert expression (cast(int)pastLast - 1) of type int to ushort" Product: D Version: D2 Hardware: x86 OS: Mac OS X Status: NEW Severity: normal Priority: P1 Component: phobos Assignee: nobody puremagic.com Reporter: timothee.cour2 gmail.com DMD64 D Compiler v2.067.1 std/range/package.d(4056): Error: cannot implicitly convert expression (cast(int)pastLast - 1) of type int to ushort ---- void test(){ import std.range; ushort a=10; ushort b=20; auto ret=iota(a, b, 10); } ---- --
Feb 23 2016