dmd/compiler/test/compilable/test18737.d
2022-07-09 18:53:07 +02:00

32 lines
423 B
D

/* REQUIRED_ARGS:
* PERMUTE_ARGS:
*/
// https://issues.dlang.org/show_bug.cgi?id=18737
struct S
{
this(char);
this(int j)
{
this('a');
assert(0);
this('b');
}
this(long j)
{
if (j)
{
this('c');
assert(0);
}
else if (j + 1)
{
this('d');
return;
}
this('e');
}
}