mirror of
https://github.com/jlengrand/kotlin.git
synced 2026-05-10 08:31:29 +00:00
9 lines
217 B
Plaintext
9 lines
217 B
Plaintext
>>> enum class E {
|
|
... FIRST
|
|
... SECOND
|
|
... }
|
|
>>> E.values().toList()
|
|
[FIRST, SECOND]
|
|
>>> E.FIRST.javaClass == E.SECOND.javaClass // check that no artificial classes are generated for simple enum entries
|
|
true
|