39bd97147f
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.
9 lines
103 B
Kotlin
Vendored
9 lines
103 B
Kotlin
Vendored
class A {
|
|
companion object {}
|
|
enum class E {
|
|
OK
|
|
}
|
|
}
|
|
|
|
fun box() = A.E.OK.toString()
|