Files
kotlin/compiler/testData/codegen/box/ir/enumClass2.kt
2019-11-19 11:00:09 +03:00

19 lines
287 B
Kotlin
Vendored

// IGNORE_BACKEND_FIR: JVM_IR
//WITH_RUNTIME
import kotlin.test.assertEquals
enum class TestEnumClass(val x: Int) {
ZERO
// {
// init {
// }
// }
;
constructor(): this(0)
}
fun box(): String {
assertEquals(TestEnumClass.ZERO.x, 0)
return "OK"
}