Add KClass.isValue to kotlin-reflect

#KT-44782 Fixed
This commit is contained in:
Alexander Udalov
2021-03-05 20:15:35 +01:00
parent 4d51d71699
commit 6ddca4a592
5 changed files with 34 additions and 0 deletions
@@ -133,6 +133,12 @@ public actual interface KClass<T : Any> : KDeclarationContainer, KAnnotatedEleme
@SinceKotlin("1.4")
public val isFun: Boolean
/**
* `true` if this class is a value class.
*/
@SinceKotlin("1.5")
public val isValue: 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: