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

20 lines
428 B
Kotlin
Vendored

package soInlineAnonymousFunctionArgument
fun main(args: Array<String>) {
//Breakpoint!
val b = 1 // 1
foo( // 2
fun (){ test(1) }
)
foo(fun (){ test(1) }) // 3
} // 4
inline fun foo(f: () -> Unit) {
f()
}
fun test(i: Int) = 1
// STEP_OVER: 6