Files
kotlin-fork/compiler/testData/codegen/box/enum/kt18731_2.kt
T
2021-10-12 23:29:39 +03:00

15 lines
245 B
Kotlin
Vendored

// SKIP_DCE_DRIVEN
enum class Bar {
ONE {
override fun toString(): String {
if (this != TWO && this == ONE) return "OK" else return "FAIL"
}
},
TWO;
}
fun box(): String {
return Bar.ONE.toString()
}