https://kotlinlang.org logo
k

Kroppeb

08/30/2020, 10:45 AM
I am porting code between 2 very simillar platforms and from java to kotlin and found it useful to define a bunch of extension functions and normal members and make use of the
ReplaceWith()
for
Deprecated
to help me. But I've noticed some issues. Am I doing something wrong, or are
ReplaceWith
not advanced enough (yet)?
I noticed that if I set the replacement to
API
it works, but this doesn't make sense to me. Could anyone elaborate as to why that works?
l

LeoColman

08/30/2020, 9:43 PM
Seems just an odd edge case. I don't think I've ever seen
this
as a target for
ReplaceWith