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: [email protected]
Reporter: [email protected]
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);
}
----
--