Files
kotlin-fork/compiler/testData/debug/stepping/whenConstant.kt
T
Mads Ager e9c9d5731e [JVM] Port Stepping and LocalVariable tests to new test infra.
This is in preparation for enabling the tests for FIR which will
be easier to do when the tests are on the new infrastructure.
2021-10-15 20:03:54 +03:00

23 lines
365 B
Kotlin
Vendored

// FILE: test.kt
fun box() {
when (1) {
2 ->
"2"
3 ->
"3"
else ->
"1"
}
}
// JVM_IR and JVM backends have different heuristics for when to use a switch.
// EXPECTATIONS
// test.kt:4 box
// EXPECTATIONS JVM_IR
// test.kt:5 box
// test.kt:7 box
// EXPECTATIONS
// test.kt:10 box
// test.kt:12 box