Files
kotlin/compiler/testData/codegen/bytecodeText/inline/finallyMarkers.kt
2018-12-21 16:20:45 +01:00

26 lines
337 B
Kotlin
Vendored

// IGNORE_BACKEND: JVM_IR
inline fun test(crossinline l: () -> String) {
{
l()
}()
object {
val z = l() //constuctor
}
}
fun box(): String {
var z = "fail"
test {
synchronized("123") {
z = "OK"
z
}
}
return z
}
// 0 finallyStart
// 0 finallyEnd