Files
kotlin-fork/compiler/testData/codegen/box/enum/kt18731_2.kt
T
Nikolay Lunyak bcfafc601e Add EnumEntries to minimal-stdlib-for-tests
This change allows to revert adding `WITH_STDLIB` directive
to tests which happened at `a9343aeb`.

Co-authored-by: Alexander Udalov <Alexander.Udalov@jetbrains.com>
2023-03-02 10:23:38 +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()
}