import std.stdio; class X { int i; private void foo() {} this() {} } void main() { foreach(mem; __traits(derivedMembers, X)) writeln(mem); }