mirror of
https://github.com/jlengrand/kotlin.git
synced 2026-05-09 00:21:47 +00:00
10 lines
147 B
Kotlin
10 lines
147 B
Kotlin
open class Base<P>() {
|
|
fun f() = 1
|
|
}
|
|
|
|
open class Left<P>() : Base<P>()
|
|
|
|
trait Right<P> : Base<P>
|
|
|
|
class Diamond<P>() : Left<P>(), Right<P>
|