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