← Back to index
|
Original Bugzilla link
Bug 8585 – iota(ubyte) problem
Status
RESOLVED
Resolution
DUPLICATE
Severity
normal
Priority
P2
Component
phobos
Product
D
Version
D2
Platform
x86
OS
Windows
Creation time
2012-08-25T14:34:00Z
Last change time
2013-02-03T12:57:54Z
Assigned to
nobody
Creator
bearophile_hugs
Comments
Comment #0
by bearophile_hugs — 2012-08-25T14:34:32Z
import std.range: iota; void main() { auto r = iota(cast(ubyte)5); } DMD 2.061alpha gives: ...\dmd2\src\phobos\std\range.d(4732): Error: cannot implicitly convert expression (cast(int)this.pastLast - 1) of type int to inout(ubyte) ...\dmd2\src\phobos\std\range.d(4767): Error: template instance std.range.iota!(ubyte,ubyte) error instantiating test.d(3): instantiated from here: iota!(ubyte) test.d(3): Error: template instance std.range.iota!(ubyte) error instantiating
Comment #1
by andrej.mitrovich — 2013-02-03T12:57:54Z
*** This issue has been marked as a duplicate of issue 8920 ***