mirror of
https://github.com/jlengrand/kotlin.git
synced 2026-05-10 00:21:35 +00:00
10 lines
101 B
Kotlin
10 lines
101 B
Kotlin
package test
|
|
|
|
trait A<T> {
|
|
fun foo(): T
|
|
}
|
|
|
|
class B : A<Int> {
|
|
override fun foo(): Int = 42
|
|
}
|