Files
kotlin/compiler/testData/codegen/box/objects/selfReferenceToInterfaceCompanionObjectInLambdaInSuperConstructorCall.kt
2020-03-10 15:19:34 +03:00

9 lines
169 B
Kotlin
Vendored

abstract class Base(val fn: () -> String)
interface Host {
companion object : Base({ Host.ok() }) {
fun ok() = "OK"
}
}
fun box() = Host.Companion.fn()