Files
kotlin/compiler/testData/codegen/box/objects/classCallsProtectedInheritedByCompanion.kt

12 lines
134 B
Kotlin
Vendored

open class A {
protected fun foo() = "OK"
}
class B {
companion object : A()
fun bar() = foo()
}
fun box() = B().bar()