Files
kotlin-fork/compiler/testData/codegen/box/enum/kt18731_2.kt
T
Vladimir Sukharev fbcb07d375 [K2/N] KT-55828 Enable already fixed and accidentally disabled tests
Merge-request: KT-MR-8605
Merged-by: Vladimir Sukharev <Vladimir.Sukharev@jetbrains.com>
2023-02-01 10:44:26 +00: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()
}