Hi all! I was under the impression that `KClass::s...
# announcements
d
Hi all! I was under the impression that
KClass::sealedSubclasses
is not only part of the API of Kotlin 1.3, but also of it’s implementation, but apparently this needs
kotlin-reflect
. Now I’m on a constrained device and would rather not add a 2.7MB lib just for that. Are there alternatives (beside going back to a good old
enum class
)?
c
maybe use proguard?
d
Yep, that’s the alternative. I just really thought this basic feature has landed in stdlib, unfortunately it didn’t. I guess the general rule is to assume by default that anything except
::class
is not in stdlib.