Files
kotlin-fork/backend.native/tests/external/codegen/box/objects/classCallsProtectedInheritedByCompanion.kt
T
2017-03-13 15:31:46 +03:00

12 lines
134 B
Kotlin

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