Maybe you could try something like this:
object ContextClass
object Number
val ContextClass.plus: Number.(Number) -> Number get() = { TODO() }
val result = ContextClass.run {
Number.plus(Number)
}
But it seems that the operator
keyword won’t work though.