Files
kotlin/compiler/testData/codegen/box/objects/selfReferenceToInterfaceCompanionObjectInInlineLambdaInConstructorBody.kt
2018-08-24 15:49:13 +03:00

10 lines
179 B
Kotlin
Vendored

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