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

17 lines
283 B
Kotlin
Vendored

// IGNORE_BACKEND: JVM_IR
fun foo() : Int {
val x : String = "dsa"
when (x) {
"a" -> return 1
"b" -> return 1
"c" -> return 1
"d" -> return 1
"e" -> return 1
"f" -> return 1
else -> return -1
}
}
// 1 TABLESWITCH