Files
kotlin-fork/idea/jvm-debugger/jvm-debugger-test/testData/stepping/stepOver/soLastStatementInInlineFunctionArgumentAsAnonymousParNextLine.kt
T
Yan Zhulanow 8f29f8bc9d Debugger: Rewrite step over action (KT-14296)
The main goal is to make behavior similar to what happens in Java. For instance, now we always skip lambdas.
Also, we can reliably use '$i$f' and '$i$a' synthetic local variables. There is no need in complicated hacks any more.
2020-02-14 17:35:17 +09:00

18 lines
252 B
Kotlin
Vendored

package soLastStatementInInlineFunctionArgumentAsAnonymousParNextLine
fun main(args: Array<String>) {
bar(fun() {
//Breakpoint!
nop()
}
)
}
inline fun bar(f: () -> Unit) {
nop()
f()
}
fun nop() {}
// STEP_OVER: 3