I was considering to scope an extension to an annotated type similar to
inline val @receiver:ColorInt Int.alpha get() = (this shr 24) and 0xff
from KTX, but unfortunately the extension is visible to any
Int
. Is it the expected behavior or a known issue?
j
joelpedraza
02/14/2019, 4:28 PM
I dont think that will change the scope of the extension function, it should still have the same semantics as if it were on a function arg. (Which IIRC for