mirror of
https://github.com/dlang/dmd.git
synced 2025-04-26 13:10:12 +03:00
23 lines
513 B
D
23 lines
513 B
D
// 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 = ""){}
|
|
}
|