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

28 lines
303 B
D

shared struct Shared
{
static Shared make()
{
return Shared();
}
~this()
{
}
}
shared struct Foo
{
~this()
{
}
}
struct Inner { ~this() {} }
struct Outer { shared(Inner) inner; }
void main()
{
Foo x = Foo();
auto s = Shared.make();
Outer _;
}