D issues are now tracked on GitHub. This Bugzilla instance remains as a read-only archive.
Issue 1999 - std.typecons.Tuple doesn't like strings
Summary: std.typecons.Tuple doesn't like strings
Status: RESOLVED FIXED
Alias: None
Product: D
Classification: Unclassified
Component: phobos (show other issues)
Version: D2
Hardware: x86 Windows
: P2 normal
Assignee: No Owner
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2008-04-16 02:46 UTC by Janice Caron
Modified: 2015-06-09 01:14 UTC (History)
1 user (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this issue.
Description Janice Caron 2008-04-16 02:46:55 UTC
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
Comment 1 Don 2009-09-23 05:22:59 UTC
This was fixed between 2.012 and 2.022.