Files
kotlin-fork/compiler/testData/codegen/box/localClasses/kt2700.kt
T
Anton Bannykh b551afb202 JS IR: minor fix for callable ref translation
The caching variable has to have no initializers so that there is no
dependence on evaluation order.
2018-06-18 13:15:19 +03:00

17 lines
187 B
Kotlin
Vendored

package a.b
interface Test {
fun invoke(): String {
return "OK"
}
}
private val a : Test = {
object : Test {
}
}()
fun box(): String {
return a.invoke();
}