Stepping for inline functions: add test for last statement in for
This commit is contained in:
@@ -0,0 +1,15 @@
|
||||
LineBreakpoint created at stepOverForWithInline.kt:5
|
||||
!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! stepOverForWithInline.StepOverForWithInlineKt
|
||||
Connected to the target VM, address: '!HOST_NAME!:PORT_NAME!', transport: 'socket'
|
||||
stepOverForWithInline.kt:5
|
||||
stepOverForWithInline.kt:7
|
||||
stepOverForWithInline.kt:8
|
||||
stepOverForWithInline.kt:9
|
||||
stepOverForWithInline.kt:7
|
||||
stepOverForWithInline.kt:8
|
||||
stepOverForWithInline.kt:9
|
||||
stepOverForWithInline.kt:7
|
||||
stepOverForWithInline.kt:11
|
||||
Disconnected from the target VM, address: '!HOST_NAME!:PORT_NAME!', transport: 'socket'
|
||||
|
||||
Process finished with exit code 0
|
||||
+20
@@ -0,0 +1,20 @@
|
||||
package stepOverForWithInline
|
||||
|
||||
fun main(args: Array<String>) {
|
||||
//Breakpoint!
|
||||
var prop = 0
|
||||
// inline on last line in for
|
||||
for(i in 0..1) {
|
||||
prop++
|
||||
foo { test(1) }
|
||||
}
|
||||
}
|
||||
|
||||
inline fun foo(f: () -> Int): Int {
|
||||
val a = 1
|
||||
return f()
|
||||
}
|
||||
|
||||
fun test(i: Int) = i
|
||||
|
||||
// STEP_OVER: 9
|
||||
Reference in New Issue
Block a user