I was considering to scope an extension to an anno...
# android
d
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
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
ColorInt
is linting)
d
ok, maybe Lint took a bit to refresh