mirror of
https://github.com/jlengrand/kotlin.git
synced 2026-05-08 15:53:19 +00:00
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 |