Add KClass.isFun modifier to reflection

#KT-38881 Fixed
This commit is contained in:
Alexander Udalov
2020-05-12 20:50:01 +02:00
parent 86b5c63891
commit 82551e91a4
7 changed files with 43 additions and 14 deletions
@@ -127,6 +127,12 @@ public actual interface KClass<T : Any> : KDeclarationContainer, KAnnotatedEleme
@SinceKotlin("1.1")
public val isCompanion: Boolean
/**
* `true` if this class is a Kotlin functional interface.
*/
@SinceKotlin("1.4")
public val isFun: Boolean
/**
* Returns `true` if this [KClass] instance represents the same Kotlin class as the class represented by [other].
* On JVM this means that all of the following conditions are satisfied: