[Issue 5792] New: Tuple!(real,string) fails

d-bugmail at puremagic.com d-bugmail at puremagic.com
Mon Mar 28 14:37:24 PDT 2011


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

           Summary: Tuple!(real,string) fails
           Product: D
           Version: D2
          Platform: Other
        OS/Version: Mac OS X
            Status: NEW
          Severity: normal
          Priority: P2
         Component: Phobos
        AssignedTo: nobody at puremagic.com
        ReportedBy: magnus at hetland.org


--- Comment #0 from Magnus Lie Hetland <magnus at hetland.org> 2011-03-28 14:33:58 PDT ---
The following program fails to compile for me (DMD 2.052, OS X):

import std.typecons, std.container;
void main() {
    alias Tuple!(real,string) Entry;
    Array!Entry Q;
}

The error is:

phobos/std/container.d(1549): Error: this for _data needs to be type Array not
type Payload
phobos/std/container.d(1550): Error: this for _data needs to be type Array not
type Payload
phobos/std/container.d(1551): Error: this for _data needs to be type Array not
type Payload

If "string" is replaced by, say, "int", it works.

-- 
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