isSubtypeOf

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

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


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

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

Throws