[Issue 9604] New: Element type of std.range.chain is wrong for heterogeneous range arguments

d-bugmail at puremagic.com d-bugmail at puremagic.com
Wed Feb 27 03:21:12 PST 2013


http://d.puremagic.com/issues/show_bug.cgi?id=9604

           Summary: Element type of std.range.chain is wrong for
                    heterogeneous range arguments
           Product: D
           Version: D2
          Platform: All
        OS/Version: All
            Status: NEW
          Severity: normal
          Priority: P2
         Component: Phobos
        AssignedTo: nobody at puremagic.com
        ReportedBy: jakobovrum at gmail.com


--- Comment #0 from Jakob Ovrum <jakobovrum at gmail.com> 2013-02-27 03:21:04 PST ---
---
import std.range;

void main()
{
    immutable(ubyte)[] imm;
    ubyte[] mut;

    auto c = chain(imm, mut);

    pragma(msg, ElementType!(typeof(c)));
}
---
Output:
---
int
---

As far as I can tell, the element type should be some permutation of ubyte,
like const(ubyte), not int.

-- 
Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email
------- You are receiving this mail because: -------


More information about the Digitalmars-d-bugs mailing list