Files
kotlin-fork/js/js.translator/testData/lineNumbers/memberFunWithDefaultParam.kt
T
Sergej Jaskiewicz ccbb2a08a0 [JS IR] Improve debug info for functions with default parameters
Don't generate unnecessary mappings so that the user doesn't need to
step in many times to get where they want

#KT-46276
2022-11-02 13:14:00 +00:00

15 lines
279 B
Kotlin
Vendored

open class A {
open fun foo(x: Int = 23): Int = x
fun bar() = 42
}
class B : A() {
override fun foo(x: Int): Int {
return x * 2
}
}
// LINES(JS): 1 2 2 2 2 2 2 2 2 2 4 4 4 * 7 7 8 10 9 9
// LINES(JS_IR): 1 1 2 2 2 2 2 * 4 4 4 7 7 7 8 9 9