In Kotlin, is it possible to call a member extension function specifying both the object dispatched to and the receiver? If so, how?

后端 未结 0 743
天涯浪人
天涯浪人 2020-12-18 06:18

Consider the following example:

class C {
    fun ThirdPartyClass.f() {
        // Do stuff involving functions/properties from
        // both the C instance         


        
相关标签:
回答
  • 消灭零回复
提交回复
热议问题