ReplaceWith expression - receiver?

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) {}

Try “this”?

1 Like

Perfect, thanks!