For example I have Java class (from external library):
class A {} // This is Java class
我想添加在Kotlin上编写的扩展函数,并将其称为:
A.foo() // This is call of extension function `foo` from Kotlin code
As I understand, right now it is impossible to do in Kotlin because it support "static" extension functions for KClass-es with companion object only. Right?
以后在Kotlin中实现这样的功能似乎没有什么可阻止的.正当
UPDATE 2019-06-12:这个question没有回答我的问题,因为我的问题是关于Kotlin扩展函数与Java类的兼容性.