11 lines
158 B
Kotlin
Vendored
11 lines
158 B
Kotlin
Vendored
open class A {
|
|
companion object {
|
|
protected fun foo() = "OK"
|
|
}
|
|
class B : A() {
|
|
fun bar() = foo()
|
|
}
|
|
}
|
|
|
|
fun box() = A.B().bar()
|