[Issue 1999] New: std.typecons.Tuple doesn't like strings

d-bugmail at puremagic.com d-bugmail at puremagic.com
Wed Apr 16 00:46:56 PDT 2008


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

           Summary: std.typecons.Tuple doesn't like strings
           Product: D
           Version: 2.012
          Platform: PC
        OS/Version: Windows
            Status: NEW
          Severity: normal
          Priority: P2
         Component: Phobos
        AssignedTo: bugzilla at digitalmars.com
        ReportedBy: caron800 at googlemail.com


The following fails to compile

    import std.typecons;

    void main()
    {
        Tuple!(int,string) t;
    }

The error message reported by the compiler is:

attribute argument to mixin must be a string, not ("int _0;\x0atemplate
field(int i : 0) { alias _0 field; }\x0aalias _0 " ~ (invariant(char)[]) ~
";\x0a" ~ "")

J


-- 



More information about the Digitalmars-d-bugs mailing list