Debian Codegraph @

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

raw
1 // REQUIRED_ARGS: -de
2 /* TEST_OUTPUT:
3 ---
4 fail_compilation/b19691.d(12): Error: forward reference to template `this`
5 ---
6 */
7 // https://issues.dlang.org/show_bug.cgi?id=19691
8 module b19691;
9
10 struct S1 {
11 this(T...)(T) {
12 S2(42, "");
13 }
14 }
15
16 struct S2 {
17 this(int a, string) {}
18 this(int a, S1 s = null) {}
19 }