Fix step over if there isn't any inlined arguments
This commit is contained in:
@@ -0,0 +1,8 @@
|
||||
LineBreakpoint created at stepOverSimpleFun.kt:11
|
||||
!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! stepOverSimpleFun.StepOverSimpleFunPackage
|
||||
Connected to the target VM, address: '!HOST_NAME!:PORT_NAME!', transport: 'socket'
|
||||
stepOverSimpleFun.kt:11
|
||||
stepOverSimpleFun.kt:4
|
||||
Disconnected from the target VM, address: '!HOST_NAME!:PORT_NAME!', transport: 'socket'
|
||||
|
||||
Process finished with exit code 0
|
||||
@@ -0,0 +1,26 @@
|
||||
package stepOverSimpleFun
|
||||
|
||||
fun main(args: Array<String>) {
|
||||
foo(1)
|
||||
val a = 1
|
||||
}
|
||||
|
||||
fun foo(i: Int): Int {
|
||||
if (i > 0) {
|
||||
//Breakpoint!
|
||||
return 1
|
||||
}
|
||||
return 1
|
||||
}
|
||||
|
||||
// Do not remove: kotlin strata should be available for this test
|
||||
inline fun f(p: () -> Unit) {
|
||||
val b = 1
|
||||
p()
|
||||
}
|
||||
|
||||
fun f2() {
|
||||
f {
|
||||
val b = 1
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user