mirror of
https://github.com/jlengrand/kotlin.git
synced 2026-05-09 00:21:47 +00:00
14 lines
255 B
Kotlin
Vendored
14 lines
255 B
Kotlin
Vendored
// IGNORE_BACKEND: JVM_IR
|
|
fun foo(x : String) : String {
|
|
assert("abz]".hashCode() == "aby|".hashCode())
|
|
|
|
when (x) {
|
|
"abz]", "cde" -> return "abz_cde"
|
|
"aby|", "ghi" -> return "aby_ghi"
|
|
}
|
|
|
|
return "other"
|
|
}
|
|
|
|
// 1 LOOKUPSWITCH
|