Files
kotlin-fork/compiler/testData/codegen/box/enum/abstractNestedClass.kt
T
Mikhail Glukhikh 39bd97147f [FIR] Don't create initializers for simple enum entries
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.
2020-02-21 16:38:52 +03:00

11 lines
106 B
Kotlin
Vendored

enum class E {
ENTRY;
abstract class Nested
}
fun box(): String {
E.ENTRY
return "OK"
}