Files
kotlin-fork/compiler/testData/codegen/box/privateConstructors/captured.kt
T

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
}