mirror of
https://github.com/dlang/dmd.git
synced 2025-04-26 05:00:16 +03:00
26 lines
398 B
D
26 lines
398 B
D
// https://issues.dlang.org/show_bug.cgi?id=22639
|
|
|
|
struct A
|
|
{
|
|
this(ref return scope A rhs) inout {}
|
|
this(ref return scope const A rhs, int b = 7) inout
|
|
{
|
|
if (b != 7) {
|
|
this.b = b;
|
|
}
|
|
}
|
|
|
|
this(this) @disable;
|
|
|
|
int a=4;
|
|
int b=3;
|
|
}
|
|
|
|
void main()
|
|
{
|
|
A a = A();
|
|
A c = A(a, 10);
|
|
A d = void;
|
|
d.__ctor(a, 200);
|
|
A* b = new A(a, 10);
|
|
}
|