[Issue 15717] New: iota: "Error: cannot implicitly convert expression (cast(int)pastLast - 1) of type int to ushort"
via Digitalmars-d-bugs
digitalmars-d-bugs at puremagic.com
Tue Feb 23 23:07:03 PST 2016
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 at puremagic.com
Reporter: timothee.cour2 at 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);
}
----
--
More information about the Digitalmars-d-bugs
mailing list