mirror of
https://github.com/jlengrand/kotlin.git
synced 2026-05-08 15:53:19 +00:00
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()
|