Fix for KT-10659: Debugger: Evaluate Expression and Watches fail for inline function parameter passed by reference
#KT-10659 Fixed
This commit is contained in:
@@ -0,0 +1,8 @@
|
||||
LineBreakpoint created at remappedParameterInInline.kt:7
|
||||
!JDK_HOME!\bin\java -agentlib:jdwp=transport=dt_socket,address=!HOST_NAME!:!HOST_PORT!,suspend=y,server=n -Dfile.encoding=!FILE_ENCODING! -classpath !OUTPUT_PATH!;!KOTLIN_RUNTIME!;!CUSTOM_LIBRARY!;!RT_JAR! remappedParameterInInline.RemappedParameterInInlineKt
|
||||
Connected to the target VM, address: '!HOST_NAME!:PORT_NAME!', transport: 'socket'
|
||||
remappedParameterInInline.kt:7
|
||||
Compile bytecode for p
|
||||
Disconnected from the target VM, address: '!HOST_NAME!:PORT_NAME!', transport: 'socket'
|
||||
|
||||
Process finished with exit code 0
|
||||
+14
@@ -0,0 +1,14 @@
|
||||
package remappedParameterInInline
|
||||
|
||||
inline fun watch(p: String, f: (String) -> Int) {
|
||||
// EXPRESSION: p
|
||||
// RESULT: "mno": Ljava/lang/String;
|
||||
//Breakpoint!
|
||||
f(p)
|
||||
}
|
||||
|
||||
fun main(args: Array<String>) {
|
||||
val local = "mno"
|
||||
watch(local) { it.length }
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user