Files
kotlin-fork/compiler/testData/codegen/bytecodeText/when/simpleConstValsInsideWhen.kt
T

17 lines
242 B
Kotlin
Vendored

// IGNORE_BACKEND: JVM_IR
const val A = 10
private const val B = 20
object Constants {
const val C = 30
}
fun foo(state: Int) {
when (state) {
A -> return
B -> return
else -> return
}
}
// 1 LOOKUPSWITCH