mirror of
https://github.com/jlengrand/kotlin.git
synced 2026-05-09 00:21:47 +00:00
9 lines
103 B
Kotlin
9 lines
103 B
Kotlin
// C
|
|
|
|
trait Base<T> {
|
|
fun foo(t: T): T
|
|
}
|
|
|
|
class C : Base<Unit> {
|
|
override fun foo(t: Unit) {}
|
|
} |