hasReceiverTypeOf

abstract fun hasReceiverTypeOf(kClass: KClass<*>): Boolean

Determines whatever declaration has a receiver type of the specified Kotlin class.

Return

true if the declaration has a receiver type matching the specified KClass, false otherwise.

Parameters

kClass

The Kotlin class representing the receiver type to check for.