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

33 lines
318 B
D

// https://issues.dlang.org/show_bug.cgi?id=20842
struct A
{
int i;
@disable this(ref A);
}
A a = { i: 123 };
struct B
{
int i;
@disable this();
}
B b = { i: 123 };
union C
{
int i;
@disable this(ref C);
}
C c = { i: 123 };
union D
{
int i;
@disable this();
}
D d = { i: 123 };