mirror of
https://github.com/jlengrand/kotlin.git
synced 2026-05-08 08:31:26 +00:00
15 lines
228 B
Kotlin
Vendored
15 lines
228 B
Kotlin
Vendored
// LANGUAGE_VERSION: 1.0
|
|
|
|
const val y = "cde"
|
|
|
|
fun foo(x : String) : String {
|
|
when (x) {
|
|
"abc", "${y}" -> return "abc_cde"
|
|
"e" + "fg", "ghi" -> return "efg_ghi"
|
|
}
|
|
|
|
return "other"
|
|
}
|
|
|
|
// 0 LOOKUPSWITCH
|