12 lines
218 B
Kotlin
Vendored
12 lines
218 B
Kotlin
Vendored
fun <T> eval(fn: () -> T) = fn()
|
|
|
|
public open class Outer private constructor(val s: String) {
|
|
|
|
companion object {
|
|
fun test () = eval { Outer("OK") }
|
|
}
|
|
}
|
|
|
|
fun box(): String {
|
|
return Outer.test().s
|
|
} |