Debian Codegraph @

gcc/testsuite/gdc.test/runnable/test24599.d

raw
1 module mod;
2
3 struct Variable
4 {
5 size_t toHash() const { return 0; }
6 }
7
8 enum hasInoutConstruction(T) = __traits(compiles, { struct S { T a; } });
9
10 struct Algebraic(T)
11 {
12 static if (hasInoutConstruction!T)
13 {
14 }
15 }
16
17 Algebraic!Variable foo();
18
19 struct S
20 {
21 Variable[] symbols;
22 }
23
24 void main() {}