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

28 lines
495 B
Kotlin
Vendored

package kt15823
object Some {
val collection = mutableListOf<() -> Unit>()
inline fun inlineWithReified(crossinline lambda: () -> Unit) {
collection.add({ lambda() })
}
init {
inlineWithReified {
//Breakpoint!
foo() // Will marked as (X), and never hit, but executes
}
}
fun foo() {}
fun magic() {
collection.forEach { it.invoke() }
}
}
fun main(args: Array<String>) {
Some.magic()
}
// RESUME: 1