mirror of
https://github.com/dlang/dmd.git
synced 2025-04-26 05:00:16 +03:00
18 lines
228 B
D
18 lines
228 B
D
// https://issues.dlang.org/show_bug.cgi?id=22510
|
|
|
|
struct S
|
|
{
|
|
int b;
|
|
|
|
@disable this(this);
|
|
this (scope ref inout S) inout
|
|
{
|
|
this.b = 0;
|
|
}
|
|
}
|
|
|
|
void main()
|
|
{
|
|
auto scoped_s = S(4);
|
|
auto heap_s = new S(42);
|
|
}
|