blob: 50990e3c0b15136bcfb298c943c2a09418ea9046 [file]
// IGNORE_BACKEND: JVM_IR
private fun Any?.doTheThing(): String {
when (this) {
is String -> return this
is Level -> {
when (this) {
Level.O -> return Level.O.name
Level.K -> return Level.K.name
}
}
else -> return "fail"
}
}
enum class Level {
O,
K
}
fun box(): String {
return "O".doTheThing() + Level.K.doTheThing()
}
// 1 TABLESWITCH