ReplaceWith expression - receiver?


#1

When creating a Deprecated ReplaceWith expression, is there a way to use the receiver as part of the expression?

I want to be able to do something like this:

@Deprecated(“Use bind”, ReplaceWith(“bind(receiver, callback)”))
fun T.onChanged(callback: (T) -> Unit) {}


#2

Try “this”?


#3

Perfect, thanks!