Files
kotlin/compiler/testData/codegen/box/defaultArguments/constructor/enum.kt
2019-11-19 11:00:09 +03:00

13 lines
193 B
Kotlin
Vendored

// IGNORE_BACKEND_FIR: JVM_IR
enum class A(val a: Int = 1) {
FIRST(),
SECOND(2)
}
fun box(): String {
if (A.FIRST.a == 1 && A.SECOND.a == 2) {
return "OK"
}
return "fail"
}