Files
kotlin-fork/compiler/testData/debug/stepping/defaultParameter.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

34 lines
577 B
Kotlin
Vendored

// FILE: test.kt
class A {
fun computeParam() = 32
fun foo(param: Int = computeParam()) {
}
}
fun box() {
A().foo()
}
// FORCE_STEP_INTO
// EXPECTATIONS JVM JVM_IR
// test.kt:11 box
// test.kt:3 <init>
// test.kt:11 box
// test.kt:6 foo$default (synthetic)
// test.kt:4 computeParam
// test.kt:6 foo$default (synthetic)
// test.kt:7 foo
// test.kt:6 foo$default (synthetic)
// test.kt:12 box
// EXPECTATIONS JS_IR
// test.kt:11 box
// test.kt:3 <init>
// test.kt:11 box
// test.kt:6 foo$default
// test.kt:4 computeParam
// test.kt:7 foo
// test.kt:12 box