Files

10 lines
148 B
Kotlin
Vendored

abstract class A<T : Any> {
abstract protected fun T.foo()
fun bar(x: T?) {
if (x != null) {
x.foo()
}
}
}