8f29f8bc9d
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.
18 lines
252 B
Kotlin
Vendored
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 |