https://issues.dlang.org/show_bug.cgi?id=15983
Martin Nowak <c...@dawg.eu> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |RESOLVED Resolution|--- |DUPLICATE --- Comment #1 from Martin Nowak <c...@dawg.eu> --- You can get the base class like so. void foo(T)(T t) if (is(T Base == super)) { Base.Something something; } Still need to have all base classes in a the same module/package as the function. Would be interested to know, why you rely on duck typing of the base class. Also maybe it's not worth to hide Something when it's a common property of your class hierarchy. *** This issue has been marked as a duplicate of issue 15897 *** --