Can I add static extension fun for third-party class in kotlin?

前端 未结 0 482
花落未央
花落未央 2021-01-27 10:33

Third party class ThirdClass without companion object, how can I add static extension fun for it like: fun ThirdClass.Companion.hello(){}

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