allSupertypes

expect fun KClass<*>.allSupertypes(strict: Boolean): Sequence<KClass<*>>

Every supertype (superclass and implemented interface, transitively) of this KClass, plus this KClass itself unless strict is true.

Throws

on Kotlin/JS, where reflective access to supertypes is unsupported.

actual fun KClass<*>.allSupertypes(strict: Boolean): Sequence<KClass<*>>

Every supertype (superclass and implemented interface, transitively) of this KClass, plus this KClass itself unless strict is true.

Throws

on Kotlin/JS, where reflective access to supertypes is unsupported.

actual fun KClass<*>.allSupertypes(strict: Boolean): Sequence<KClass<*>>

Every supertype (superclass and implemented interface, transitively) of this KClass, plus this KClass itself unless strict is true.

Throws

on Kotlin/JS, where reflective access to supertypes is unsupported.