mirror of
https://github.com/jlengrand/kotlin.git
synced 2026-05-16 15:53:55 +00:00
11 lines
152 B
Plaintext
11 lines
152 B
Plaintext
trait G<T> {
|
|
fun foo(t : T) : T
|
|
}
|
|
|
|
class GC() : G<Int> {
|
|
|
|
override fun foo(t: Int): Int {
|
|
throw UnsupportedOperationException()
|
|
}
|
|
}
|