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

20 lines
292 B
Kotlin
Vendored

package stopInAnonymousFunctionInInlinedCallWithCrossInline
// KT-15282
fun main(args: Array<String>) {
foo(fun (): Int {
//Breakpoint!
return 12
})
}
fun bar(f: () -> Unit) {
f()
}
inline fun foo(crossinline func: () -> Int) {
bar {
func()
}
}