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

14 lines
194 B
D

// https://issues.dlang.org/show_bug.cgi?id=20367
struct A
{
int x;
this(ref return scope A rhs) {}
@disable this(this) {}
}
void main()
{
A a;
A b = a; // copy constructor gets called
}