03fb49bb38
Specifically, this commit improves the stepping behavior of the IR
backend around functions with defaults.
- Improved line numbers in the default handler itself for better
stepping when inlined.
- Improved source information on default arguments
- Improved test coverage of stepping behavior in old and IR backends.
Improves the stepping behaviour around inline methods with default
arguments. In particular, we now accurately step through the
evaluation of default arguments, but do _not_ spuriously show the exit
from the $default handler.
41 lines
488 B
Kotlin
Vendored
41 lines
488 B
Kotlin
Vendored
|
|
// FILE: 1.kt
|
|
|
|
package test
|
|
inline fun inlineFun(capturedParam: String, noinline lambda: () -> String = { capturedParam }): String {
|
|
return lambda()
|
|
}
|
|
|
|
// FILE: 2.kt
|
|
//NO_CHECK_LAMBDA_INLINING
|
|
import test.*
|
|
|
|
fun box(): String {
|
|
return inlineFun("OK")
|
|
}
|
|
|
|
// FILE: 1.smap
|
|
//TODO maybe do smth with default method body mapping
|
|
SMAP
|
|
1.kt
|
|
Kotlin
|
|
*S Kotlin
|
|
*F
|
|
+ 1 1.kt
|
|
test/_1Kt
|
|
*L
|
|
1#1,9:1
|
|
*E
|
|
|
|
SMAP
|
|
1.kt
|
|
Kotlin
|
|
*S Kotlin
|
|
*F
|
|
+ 1 1.kt
|
|
test/_1Kt$inlineFun$1
|
|
*L
|
|
1#1,9:1
|
|
*E
|
|
|
|
// FILE: 2.TODO |