KT-10670: Debugger: Evaluate Expression/Watches fail for inline function parameter initialized with default value
#KT-10670 Fixed
This commit is contained in:
@@ -1,8 +1,11 @@
|
||||
LineBreakpoint created at remappedParameterInInline.kt:7
|
||||
LineBreakpoint created at remappedParameterInInline.kt:14
|
||||
!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
|
||||
remappedParameterInInline.kt:14
|
||||
Compile bytecode for p
|
||||
Disconnected from the target VM, address: '!HOST_NAME!:PORT_NAME!', transport: 'socket'
|
||||
|
||||
Process finished with exit code 0
|
||||
|
||||
+9
-1
@@ -7,8 +7,16 @@ inline fun watch(p: String, f: (String) -> Int) {
|
||||
f(p)
|
||||
}
|
||||
|
||||
inline fun inlineDefault(p: Int = 1, f: (Int) -> Unit) {
|
||||
// EXPRESSION: p
|
||||
// RESULT: 1: I
|
||||
//Breakpoint!
|
||||
f(p)
|
||||
}
|
||||
|
||||
fun main(args: Array<String>) {
|
||||
val local = "mno"
|
||||
watch(local) { it.length }
|
||||
}
|
||||
|
||||
inlineDefault { it }
|
||||
}
|
||||
Reference in New Issue
Block a user