hasTacitTypeOf

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

Determines whether declaration has an explicitly declared type of the specified Kotlin class, or if its value contains an instance of that class with parentheses '('.

Return

true if the type is explicitly declared or found with parentheses; false otherwise.

Parameters

kClass

The Kotlin class to check.