mirror of
https://github.com/jlengrand/kotlin.git
synced 2026-05-12 15:53:40 +00:00
12 lines
134 B
Kotlin
Vendored
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()
|