blob: 1b8aa1c4f18ac1964b29ee9b55e8211cb1d2c2de [file] [log] [blame]
// REQUIRED_ARGS: -de
/* TEST_OUTPUT:
---
fail_compilation/b19691e.d(16): Error: forward reference to template `this`
fail_compilation/b19691e.d(16): Error: constructor `b19691e.S2.this(int a, S1 s = "")` is not callable using argument types `(int, string)`
fail_compilation/b19691e.d(16): Error: forward reference to template `this`
---
*/
// https://issues.dlang.org/show_bug.cgi?id=19691
module b19691e;
struct S1
{
this(T)(T)
{
S2(42, "");
}
}
struct S2
{
this(int a, S1 s = ""){}
}