blob: 176f1257f4a09c543d4eb615edba25b3faf18006 [file] [log] [blame]
void test()
{
int a;
struct Field
{
this(this) { ++a; }
~this() { --a; }
}
struct S
{
Field field; // generates __fieldPostblit, __fieldDtor, and opAssign
}
static assert(__traits(isNested, Field));
static assert(!__traits(isNested, S));
}