blob: 4ec029572f4f20c5ca441dad67977a5323abfb1f [file] [log] [blame]
// https://issues.dlang.org/show_bug.cgi?id=17143
struct Tuple(T...)
{
T values;
alias expand = values;
}
Tuple!T tuple(T...)(T args)
{
return Tuple!T(args);
}
enum foo = tuple(1, 2).expand;
static assert(typeof(foo).stringof == "(int, int)");
static assert(foo.stringof == "tuple(1, 2)");