mirror of
https://github.com/jlengrand/kotlin.git
synced 2026-05-18 08:31:38 +00:00
Usually FIR enum entry is initialized by anonymous object, which is the container for all enum entry' declarations. However, for simple enum entries there is no need of initializer at all.
7 lines
66 B
Kotlin
Vendored
7 lines
66 B
Kotlin
Vendored
enum class State {
|
|
O,
|
|
K
|
|
}
|
|
|
|
fun box() = "${State.O}${State.K}"
|