isSuperclassOf

fun KClass<*>.isSuperclassOf(derived: KClass<*>): Boolean(source)

Returns true if this class is the same or is a (possibly indirect) superclass of derived, false otherwise.

Since Kotlin

1.1