16 lines
245 B
Kotlin
16 lines
245 B
Kotlin
package foo
|
|
|
|
fun run<T>(f: () -> T) = f()
|
|
|
|
fun box(): Boolean {
|
|
val t = run {
|
|
object {
|
|
fun boo(param: String): String {
|
|
return run { param }
|
|
}
|
|
}
|
|
}
|
|
|
|
return t.boo("OK") == "OK"
|
|
}
|