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

33 lines
262 B
D

struct bar2
{
int i;
@disable this();
this(int i)
{
this.i = i;
}
}
class InnerBar {
bar2 b;
this()
{
b = bar2(0);
}
}
struct bar1
{
InnerBar b;
}
class Foo
{
bar1 m_bar1;
}
void main(string[] args)
{
auto foo = new Foo();
}