mirror of
https://github.com/jlengrand/kotlin.git
synced 2026-05-08 08:31:26 +00:00
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
25 lines
311 B
Kotlin
Vendored
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 |