Paul Woitaschek
04/16/2020, 6:35 AMabstract class ReceiverClass {
open fun String.onSomethingHappened(){
println(this)
}
}
class Child : ReceiverClass(){
override fun String.onSomethingHappened() {
super.onSomethingHappened() <-- doesnt compile
println("hello world")
}
}
Stephan Schroeder
04/16/2020, 8:46 AMsuper.onSomethingHappened
?? I'm very much surprised that you seem to be able to override functions with receivers at all, since my mental model for them is that it's basically syntactic sugar for static methods.Paul Woitaschek
04/16/2020, 8:47 AMPaul Woitaschek
04/16/2020, 8:47 AMPaul Woitaschek
04/16/2020, 8:47 AMPaul Woitaschek
04/16/2020, 8:48 AMB.onBindingCreated()
function and all my rendering functions have the binding as a receiverKroppeb
04/16/2020, 9:32 AMsuper.onSomethingHappend()
would make the super
the receiver instead of the String
. We still don't have a way to do multiple receivers.Kroppeb
04/16/2020, 9:33 AM