如何在kotlin中扩展函数类型?

时间:2020-05-31 13:21:56

标签: generics kotlin kotlin-extension

我只是不明白为什么可以在kotlin中扩展函数类型?然后我们为什么不能扩展String?,这也是一种类型。

interface CustomFunctionType : () -> Unit {
// this is possible, buy how?
}

0 个答案:

没有答案