Summary: iota(ubyte) problem
           Product: D
           Version: D2
          Platform: x86
        OS/Version: Windows
            Status: NEW
          Severity: normal
          Priority: P2
         Component: Phobos

--- Comment #0 from 2012-08-25 14:34:32 PDT ---
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

Configure issuemail:
------- You are receiving this mail because: -------

Reply via email to