mirror of
https://github.com/dlang/dmd.git
synced 2025-04-26 21:21:48 +03:00
21 lines
259 B
D
21 lines
259 B
D
// https://issues.dlang.org/show_bug.cgi?id=19870
|
|
struct T
|
|
{
|
|
int i;
|
|
this(ref return scope inout typeof(this) src)
|
|
inout @safe pure nothrow @nogc
|
|
{
|
|
i = src.i;
|
|
}
|
|
}
|
|
|
|
struct S
|
|
{
|
|
T t;
|
|
}
|
|
|
|
void main()
|
|
{
|
|
T a;
|
|
S b = S(a);
|
|
}
|