class X {} class Y : X {} static assert(!isSubclassOf!(X, Y)); static assert( isSubclassOf!(X, Object)); static assert( isSubclassOf!(Y, X)); static assert( isSubclassOf!(Y, Object));
See Implementation