mirror of
https://github.com/dlang/dmd.git
synced 2025-04-26 21:21:48 +03:00
33 lines
318 B
D
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 };
|