In Kotlin I have code like the following:
open class A {
protected open fun B.doSomething() {}
}
class B {}
class C : A() {
override fun B.doSomething() {
print("first, do some C-specific logic")
print("now try to call super implementation. How?")
super.doSomething() // does not compile
super<A>.doSomething() // does not compile
super<B>.doSomething() // does not compile
}
}
And I would like to know, how I can call the superclass implementation of doSomething() in this case? Or is it not possible at all to call a super implementation for an extension function in kotlin?