Files
kotlin-fork/compiler/testData/codegen/box/objects/companionObjectAccess/privateCompanionObjectAccessedFromInitBlock.kt
T
2019-11-19 11:00:09 +03:00

16 lines
260 B
Kotlin
Vendored

// !LANGUAGE: +ProperVisibilityForCompanionObjectInstanceField
// IGNORE_BACKEND_FIR: JVM_IR
class Outer {
private companion object {
val result = "OK"
}
val test: String
init {
test = result
}
}
fun box() = Outer().test