Files
kotlin-fork/js/js.translator/testData/lineNumbers/chainedCall.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

19 lines
338 B
Kotlin
Vendored

fun box(a: C, x: dynamic) {
println(a
.foo()
.bar())
println(a
.baz
.boo)
}
class C {
fun foo(): dynamic = null
val baz: dynamic get() = null
}
// LINES(JS): 1 9 2 4 3 2 6 8 7 6 11 12 12 12 14 14 14
// LINES(JS_IR): 1 1 2 4 3 2 6 8 7 6 11 11 12 12 12 14 14 14