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