Debian Codegraph @

gcc/testsuite/gdc.test/fail_compilation/test23882.d

raw
1 // https://issues.dlang.org/show_bug.cgi?id=23882
2
3 /*
4 TEST_OUTPUT:
5 ---
6 fail_compilation/test23882.d(26): Error: `typeof((*YC).S).init` is used as a type
7 ---
8 */
9
10 struct G(H)
11 {
12 Tuple!(R) S;
13 }
14
15 struct BB(H)
16 {
17 H* YC;
18 alias YC this;
19 }
20
21 struct R
22 {
23 BB!(G!float) CB;
24 alias CB this;
25
26 this(typeof(CB.S).init);
27 }
28
29 struct Tuple(Specs)
30 {
31 Specs expand;
32
33 this(Specs values)
34 {
35 expand = values;
36 }
37 }