]> git.ipfire.org Git - thirdparty/gcc.git/blame - gcc/testsuite/gdc.test/compilable/test17143.d
d: Import dmd b8384668f, druntime e6caaab9, phobos 5ab9ad256 (v2.098.0-beta.1)
[thirdparty/gcc.git] / gcc / testsuite / gdc.test / compilable / test17143.d
CommitLineData
5fee5ec3
IB
1// https://issues.dlang.org/show_bug.cgi?id=17143
2
3struct Tuple(T...)
4{
5 T values;
6 alias expand = values;
7}
8
9Tuple!T tuple(T...)(T args)
10{
11 return Tuple!T(args);
12}
13
b4c522fa 14enum foo = tuple(1, 2).expand;
7da827c9
IB
15static assert(typeof(foo).stringof == "(int, int)");
16static assert(foo.stringof == "tuple(1, 2)");