Files
kotlin/compiler/testData/codegen/box/objects/selfReferenceToCompanionObjectInInlineLambdaInConstructorBody.kt
2019-11-19 11:00:09 +03:00

10 lines
179 B
Kotlin
Vendored

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