Files
kotlin/compiler/testData/codegen/box/objects/selfReferenceToInterfaceCompanionObjectInInlineLambdaInSuperConstructorCall.kt
2018-08-15 13:35:14 +03:00

9 lines
177 B
Kotlin
Vendored

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