Files
kotlin-fork/compiler/testData/codegen/box/closures/kt4106.kt
T

17 lines
238 B
Kotlin
Vendored

fun <T> eval(fn: () -> T) = fn()
class Foo(private val s: String) {
inner class Inner {
private val x = eval {
this@Foo.s
}
}
val f = Inner()
}
fun box(): String {
Foo("!")
return "OK"
}