238cc7c257
143 out of 767 tests (18.6%) are currently failing.
21 lines
376 B
Kotlin
Vendored
21 lines
376 B
Kotlin
Vendored
// IGNORE_BACKEND_FIR: JVM_IR
|
|
fun foo1(x : String) : String {
|
|
when (x) {
|
|
"abc", "cde" -> return "abc_cde"
|
|
"efg", "ghi" -> return "efg_ghi"
|
|
}
|
|
|
|
return "other"
|
|
}
|
|
|
|
fun foo2(x : String) : String {
|
|
when (x) {
|
|
"abc", "cde" -> return "abc_cde"
|
|
"efg", "ghi" -> return "efg_ghi"
|
|
else -> return "other"
|
|
}
|
|
}
|
|
|
|
// 2 LOOKUPSWITCH
|
|
|