mirror of
https://github.com/dlang/dmd.git
synced 2025-04-26 13:10:12 +03:00
19 lines
324 B
D
19 lines
324 B
D
// REQUIRED_ARGS: -de
|
|
/* TEST_OUTPUT:
|
|
---
|
|
fail_compilation/b19691.d(12): Error: forward reference to template `this`
|
|
---
|
|
*/
|
|
// https://issues.dlang.org/show_bug.cgi?id=19691
|
|
module b19691;
|
|
|
|
struct S1 {
|
|
this(T...)(T) {
|
|
S2(42, "");
|
|
}
|
|
}
|
|
|
|
struct S2 {
|
|
this(int a, string) {}
|
|
this(int a, S1 s = null) {}
|
|
}
|