mirror of
https://github.com/jlengrand/kotlin.git
synced 2026-05-09 15:53:37 +00:00
14 lines
228 B
Kotlin
Vendored
14 lines
228 B
Kotlin
Vendored
// IGNORE_BACKEND: JVM_IR
|
|
const val y = "cde"
|
|
|
|
fun foo(x : String) : String {
|
|
when (x) {
|
|
"abc", "${y}" -> return "abc_cde"
|
|
"e" + "fg", "ghi" -> return "efg_ghi"
|
|
}
|
|
|
|
return "other"
|
|
}
|
|
|
|
// 1 LOOKUPSWITCH
|