has anybody tried inine classes with enums yet ? s...
# announcements
n
has anybody tried inine classes with enums yet ? seems to me that would fix
Each Enum constant is an object
k
What does
Each Enum constant is an object
mean?
g
Not sure that I get what Nikky want to say
k
I didn't get that message either simple smile
g
original message was about completely different thing, that each enum case has only one instance, like Kotlin object/singleton
So if you have case when you need multiple instances of some case, use sealed classes, if each case is
object
, use Enum
k
Okay so that's not actually code/an error message or something?
g
no, it’s a way how to choose between Enums and Sealed classes
And no, inline enums do not supported yet