Files
kotlin-fork/compiler/testData/codegen/bytecodeText/whenStringOptimization/expression.kt
T
Mark Punzalan 238cc7c257 [FIR] Enable BytecodeText tests for FIR.
143 out of 767 tests (18.6%) are currently failing.
2020-09-29 10:21:21 +03:00

11 lines
202 B
Kotlin
Vendored

// IGNORE_BACKEND_FIR: JVM_IR
fun foo(x : String) : String {
return when (x) {
"abc", "cde" -> "abc_cde"
"efg", "ghi" -> "efg_ghi"
else -> "other"
}
}
// 1 LOOKUPSWITCH