238cc7c257
143 out of 767 tests (18.6%) are currently failing.
20 lines
383 B
Kotlin
Vendored
20 lines
383 B
Kotlin
Vendored
// IGNORE_BACKEND_FIR: JVM_IR
|
|
fun foo1(x : String?) : String {
|
|
when (x) {
|
|
"abc", "cde" -> return "abc_cde"
|
|
"efg", "ghi", null -> 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
|