Files
kotlin/compiler/testData/codegen/boxInline/smap/anonymous/objectOnInlineCallSiteWithCapture.2.kt

22 lines
408 B
Kotlin
Vendored

package builders
//TODO there is a bug in asm it's skips linenumber on same line on reading bytecode
inline fun call(crossinline init: () -> Unit) {
"1"; return init()
}
inline fun test(crossinline p: () -> String): String {
var res = "Fail"
call {
object {
fun run () {
res = p()
}
}.run()
}
return res
}
//TODO SHOULD BE LESS