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
}
}