Files
kotlin-fork/compiler/testData/codegen/box/objects/selfReferenceToInterfaceCompanionObjectInInlineLambdaInConstructorBody.kt
T

10 lines
178 B
Kotlin
Vendored

// IGNORE_BACKEND: JS_IR
interface Test {
companion object {
fun ok() = "OK"
val x = run { Test.ok() }
fun test() = x
}
}
fun box() = Test.test()