1 // REQUIRED_ARGS: -de
2 /* TEST_OUTPUT:
3 ---
4 fail_compilation/b19691.d(13): Error: forward reference to template `this`
5 fail_compilation/b19691.d(19): Deprecation: constructor `b19691.S2.this` all parameters have default arguments, but structs cannot have default constructors.
6 ---
7 */
8 // https://issues.dlang.org/show_bug.cgi?id=19691
9 module b19691;
10 
11 struct S1 {
thisS112     this(T...)(T) {
13         S2("");
14     }
15 }
16 
17 struct S2 {
this(string)18     this(string) {}
19     this(S1 s = null) {}
20 }
21