Debian Codegraph @

gcc/testsuite/gdc.test/compilable/fix17145.d

raw
1 // https://issues.dlang.org/show_bug.cgi?id=17145
2
3 auto tuple(T...)(T t) {
4 struct Result {
5 T expand;
6 }
7 return Result(t);
8 }
9
10 void baz()
11 {
12 enum zoo = tuple(1, 2).expand; // Error: value of __tup1847 is not known at compile time
13 }