mercredi 5 février 2020

Kotlin: print class name without reflection in multiplatform project

Data classes print out just fine in MPP projects. When I toString() the KClass object for my class, I get:

class com.example.MySimpleClass (Kotlin reflection is not available)

How Can I do what data class does and have a nice clean name without reflection?





Aucun commentaire:

Enregistrer un commentaire