Files
kotlin/compiler/testData/codegen/bytecodeText/whenStringOptimization/duplicatingItems.kt
2018-12-21 16:20:45 +01:00

13 lines
241 B
Kotlin
Vendored

// IGNORE_BACKEND: JVM_IR
import kotlin.test.assertEquals
fun foo(x : String) : String {
when (x) {
"abc" -> return "abc"
"efg", "ghi", "abc" -> return "efg_ghi"
else -> return "other"
}
}
// 1 LOOKUPSWITCH