Bug 1999 – std.typecons.Tuple doesn't like strings

Status
RESOLVED
Resolution
FIXED
Severity
normal
Priority
P2
Component
phobos
Product
D
Version
D2
Platform
x86
OS
Windows
Creation time
2008-04-16T02:46:00Z
Last change time
2015-06-09T01:14:37Z
Assigned to
nobody
Creator
caron800

Comments

Comment #0 by caron800 — 2008-04-16T02:46:55Z
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 by clugdbug — 2009-09-23T05:22:59Z
This was fixed between 2.012 and 2.022.