Closed p0nce closed 2 years ago
class A { } interface I{} class B : A, I {} static if(is(B Parents == super) && Parents.length) pragma(msg, Parents[0]);
Courtesy of Adam.
and if you were doing a Phobos style template for this you'd just alias eponymous = Parents[0]
Courtesy of Adam.