mirror of
https://github.com/dlang/dmd.git
synced 2025-04-26 21:21:48 +03:00
21 lines
248 B
D
21 lines
248 B
D
// https://issues.dlang.org/show_bug.cgi?id=20365
|
|
|
|
string result = "";
|
|
|
|
struct S
|
|
{
|
|
long[3] a;
|
|
this(ref typeof(this)) { result ~= "C"; }
|
|
}
|
|
|
|
void fun()
|
|
{
|
|
S[4] a;
|
|
auto b = a;
|
|
}
|
|
|
|
void main()
|
|
{
|
|
fun();
|
|
assert(result == "CCCC");
|
|
}
|