I expect ["__ctor", "__dtor", "toString", "toHash", "opCmp", "opEquals"], instead I got ["toString", "toHash", "opCmp", "opEquals", "Monitor", "factory"]
Care anyone explain why it is?

Source is the following:

import std.stdio;
import std.traits;

interface A
{
}


class D : A
{
    this()
    {
    }
    ~this()
    {
    }
}




void main()
{
    alias TL = TransitiveBaseTypeTuple!D;
    for(int x = 0; x < TL.length; x++)
    {
      auto b = [__traits(allMembers, TL[0])];
      writeln(b);
    }
}


Reply via email to