← Back to index
|
Original Bugzilla link
Bug 15717 – iota: "Error: cannot implicitly convert expression (cast(int)pastLast - 1) of type int to ushort"
Status
RESOLVED
Resolution
DUPLICATE
Severity
normal
Priority
P1
Component
phobos
Product
D
Version
D2
Platform
x86
OS
Mac OS X
Creation time
2016-02-24T07:07:00Z
Last change time
2017-05-14T23:14:40Z
Assigned to
nobody
Creator
timothee.cour2
Comments
Comment #0
by timothee.cour2 — 2016-02-24T07:07:03Z
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); } ----
Comment #1
by schveiguy — 2017-05-14T23:14:40Z
16246 is about to be fixed, and this should be fixed as well. *** This issue has been marked as a duplicate of issue 16246 ***