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

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