Files
kotlin-fork/compiler/testData/codegen/box/localClasses/kt2700.kt
T

17 lines
218 B
Kotlin
Vendored

package a.b
fun <T> eval(fn: () -> T) = fn()
interface Test {
fun invoke(): String {
return "OK"
}
}
private val a : Test = eval {
object : Test {}
}
fun box(): String {
return a.invoke();
}