Files
kotlin-fork/idea/jvm-debugger/jvm-debugger-test/testData/stepping/stepOver/stepOverForWithInline.kt
T
2019-10-08 19:13:55 +09:00

20 lines
306 B
Kotlin
Vendored

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