16 lines
148 B
Kotlin
Vendored
16 lines
148 B
Kotlin
Vendored
|
|
open class A<T> {
|
|
fun foo(t: T): T {
|
|
return t
|
|
}
|
|
}
|
|
|
|
class Some
|
|
|
|
class B : A<Some>() {
|
|
fun test() {
|
|
foo(Some())
|
|
}
|
|
}
|
|
|