mirror of
https://github.com/jlengrand/kotlin.git
synced 2026-03-10 08:31:29 +00:00
24 lines
218 B
Kotlin
Vendored
24 lines
218 B
Kotlin
Vendored
// p.Inheritor
|
|
package p
|
|
|
|
class Inheritor: I, I2 {
|
|
|
|
fun f() {
|
|
|
|
}
|
|
|
|
override fun g() {
|
|
}
|
|
}
|
|
|
|
interface I : I1 {
|
|
fun g()
|
|
}
|
|
|
|
interface I1 {
|
|
fun foo() = "foo"
|
|
}
|
|
|
|
interface I2 {
|
|
fun bar() = "bar"
|
|
} |