Files
kotlin-fork/js/js.translator/testData/lineNumbers/whenEntryWithMultipleConditions.kt
T
Sergej Jaskiewicz a939f9ccd0 [JS IR] Improve debug info precision for blocks
Namely:
- Generate debug info for closing braces, which allows the breakpoints
  set on closing braces to be hit
- Generate debug info for 'if' and 'try/catch' statements.

KT-46276
2022-10-18 14:31:14 +00:00

23 lines
417 B
Kotlin
Vendored

fun box(x: Int) {
println(
when (
x
) {
1,
2,
3 ->
55
4,
5 ->
66
else ->
77
}
)
}
// LINES(JS): 1 19 4 4 3 3 4 6 9 9 6 11 13 13 11 16 16 3 2
// LINES(JS_IR): 1 1 4 4 2 8 7 6 7 8 9 12 11 12 13 16