mirror of
https://github.com/jlengrand/kotlin.git
synced 2026-05-07 08:31:28 +00:00
11 lines
230 B
Kotlin
Vendored
11 lines
230 B
Kotlin
Vendored
interface A {
|
|
// There must be no delegation methods for 'log' and 'bar' in C as they are private
|
|
private val log: String get() = "O"
|
|
private fun bar() = "K"
|
|
|
|
fun foo() = log + bar()
|
|
}
|
|
|
|
interface B : A
|
|
class C : B
|