Files
kotlin/compiler/testData/codegen/box/objects/selfReferenceToInterfaceCompanionObjectInLambdaInSuperConstructorCall.kt
2018-08-09 14:22:50 +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()