mirror of
https://github.com/jlengrand/kotlin.git
synced 2026-05-17 15:54:03 +00:00
16 lines
202 B
Kotlin
Vendored
16 lines
202 B
Kotlin
Vendored
open class A {
|
|
open fun foo() = "OK"
|
|
}
|
|
|
|
open class B : A() {
|
|
override fun foo() = super.foo()
|
|
}
|
|
|
|
interface I
|
|
|
|
class C : I, B() {
|
|
override fun foo() = super<B>.foo()
|
|
}
|
|
|
|
fun box() = C().foo()
|