test()1 void test() 2 { 3 int a; 4 5 struct Field 6 { 7 this(this) { ++a; } 8 ~this() { --a; } 9 } 10 11 struct S 12 { 13 Field field; // generates __fieldPostblit, __fieldDtor, and opAssign 14 } 15 16 static assert(__traits(isNested, Field)); 17 static assert(!__traits(isNested, S)); 18 } 19