Files
kotlin/compiler/testData/codegen/bytecodeText/when/lookupSwitchWithSubjectVal.kt

11 lines
179 B
Kotlin
Vendored

fun foo(x: Int): String {
return when (val y = x) {
100 -> "1"
200 -> "2"
300 -> "3"
else -> "else"
}
}
// 1 LOOKUPSWITCH
// 0 TABLESWITCH