* fix for #23915, use inheritsfrom instead of classtype = xxx because
    more types now have derivatives. As suggested by Daniel Gaspary.


git-svn-id: http://svn.freepascal.org/svn/fpc/trunk@23734 3ad0048d-3df7-0310-abae-a5850022a9f2