isSupertypeOf

infix fun KClass<*>.isSupertypeOf(other: KClass<*>): Boolean

Whether this KClass is a (non-strict, by default) supertype of other.


fun KClass<*>.isSupertypeOf(other: KClass<*>, strict: Boolean): Boolean

Whether this KClass is a supertype of other -- strictly (excluding other == this) if strict is true.

Throws