Files
kotlin-fork/compiler/testData/debug/stepping/defaultParameter.kt
T
Mads Ager 9fa1614903 [JVM] Port line number tests to stepping framework.
Allow specifying JVM and JVM_IR as well as shared expectations.

Add the method name to the step.

Discard steps in synthetic methods.
2020-05-27 07:28:47 +02:00

25 lines
400 B
Kotlin
Vendored

// FILE: test.kt
class A {
fun computeParam() = 32
fun foo(param: Int = computeParam()) {
}
}
fun box() {
A().foo()
}
// FORCE_STEP_INTO
// LINENUMBERS
// 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