6622846bc1
Putting them in the local variable table means that the debugger needs to have special handling for parameters with specific names. That forces us to generate mangled names for these. Instead of also implementing the name mangling for FIR, this change gets rid of the parameters from the LVT instead.
28 lines
863 B
Kotlin
Vendored
28 lines
863 B
Kotlin
Vendored
// WITH_RUNTIME
|
|
data class Data(val x: String, val y: Int)
|
|
|
|
suspend fun test() {
|
|
foo(Data("A", 1)) { (x_param, y_param) ->
|
|
"$x_param / $y_param"
|
|
}
|
|
}
|
|
|
|
suspend fun foo(data: Data, body: suspend (Data) -> Unit) {
|
|
body(data)
|
|
}
|
|
|
|
// METHOD : DataClassKt$test$2.invokeSuspend(Ljava/lang/Object;)Ljava/lang/Object;
|
|
|
|
// JVM_TEMPLATES
|
|
// VARIABLE : NAME=$dstr$x_param$y_param TYPE=LData; INDEX=2
|
|
// VARIABLE : NAME=x_param TYPE=Ljava/lang/String; INDEX=3
|
|
// VARIABLE : NAME=y_param TYPE=I INDEX=4
|
|
// VARIABLE : NAME=this TYPE=LDataClassKt$test$2; INDEX=0
|
|
// VARIABLE : NAME=$result TYPE=Ljava/lang/Object; INDEX=1
|
|
|
|
// JVM_IR_TEMPLATES
|
|
// VARIABLE : NAME=x_param TYPE=Ljava/lang/String; INDEX=3
|
|
// VARIABLE : NAME=y_param TYPE=I INDEX=4
|
|
// VARIABLE : NAME=this TYPE=LDataClassKt$test$2; INDEX=0
|
|
// VARIABLE : NAME=$result TYPE=Ljava/lang/Object; INDEX=1
|