Files
kotlin/compiler/testData/codegen/bytecodeText/inline/finallyMarkers.kt
Mikhael Bogdanov 21de67cac1 Fix for KT-16532: Kotlin 1.1 RC - Android cross-inline synchronized won't run
Finnaly markers are used only for non-local return processing and are removed after inlining  to non-inline functions, same deletion should be performed on inlining to anonymous objects

 #KT-16532 Fixed
2017-02-28 15:40:04 +01:00

25 lines
311 B
Kotlin
Vendored

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