fork download
  1. import std.stdio;
  2.  
  3. class X
  4. {
  5. int i;
  6. private void foo() {}
  7. this() {}
  8. }
  9.  
  10. void main()
  11. {
  12. foreach(mem; __traits(derivedMembers, X))
  13. writeln(mem);
  14. }
  15.  
Success #stdin #stdout 0.01s 2120KB
stdin
Standard input is empty
stdout
i
foo
__ctor