Fix in test bad behaviour of smart step into for stored lambda
When lambda is stored and not executed immediately, smart step into doesn't work.
This commit is contained in:
@@ -0,0 +1,8 @@
|
||||
LineBreakpoint created at smartStepIntoStoredLambda.kt:12
|
||||
!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! smartStepIntoStoredLambda.SmartStepIntoStoredLambdaKt
|
||||
Connected to the target VM, address: '!HOST_NAME!:PORT_NAME!', transport: 'socket'
|
||||
smartStepIntoStoredLambda.kt:12
|
||||
smartStepIntoStoredLambda.kt:16
|
||||
Disconnected from the target VM, address: '!HOST_NAME!:PORT_NAME!', transport: 'socket'
|
||||
|
||||
Process finished with exit code 0
|
||||
+17
@@ -0,0 +1,17 @@
|
||||
package smartStepIntoStoredLambda
|
||||
|
||||
fun foo(a: Any) {}
|
||||
|
||||
fun store(a: () -> Unit): () -> Unit {
|
||||
return a
|
||||
}
|
||||
|
||||
fun main(args: Array<String>) {
|
||||
// SMART_STEP_INTO_BY_INDEX: 2
|
||||
//Breakpoint!
|
||||
val some = store() {
|
||||
foo("hi")
|
||||
}
|
||||
|
||||
some()
|
||||
}
|
||||
Reference in New Issue
Block a user