15 lines
231 B
Kotlin
Vendored
15 lines
231 B
Kotlin
Vendored
// !LANGUAGE: +ProperVisibilityForCompanionObjectInstanceField
|
|
// IGNORE_BACKEND_FIR: JVM_IR
|
|
|
|
interface A {
|
|
fun test() = ok()
|
|
|
|
private companion object {
|
|
fun ok() = "OK"
|
|
}
|
|
}
|
|
|
|
class C : A
|
|
|
|
fun box() = C().test()
|