jeudi 20 juin 2019

Kotlin - KClass<*> from KType

In Kotlin, I can obtain a KType from a KClass<*> like so:

Int::class.createType()

kotlin.Int

How do I do the reverse and obtain the KClass<Int> from a KType representing a kotlin.Int?





Aucun commentaire:

Enregistrer un commentaire