3
如何调用超级的扩展功能?Kotlin:我怎样称呼super的扩展功能?
例如:
open class Parent {
open fun String.print() = println(this)
}
class Child : Parent() {
override fun String.print() {
print("child says ")
super.print() // syntax error on this
}
}