Generic function literals with receiver

#1

Hi,
I’m wondering why it is impossible to define generic function literal which will hold operations generally using only interface method.
In example above I expect that this definition should add extension function “myAdd” to MuttableCollection of generic type T.

val <T> myAdd: MutableCollection<T>.(T) -> Boolean = { it -> add(it) }

is this feasible in Kotlin ?

The counterpart of above is

fun <T> MutableCollection<T>.myAdd(t :T): Boolean = this.add(t)

Regards,
D