Is there a neat way of accessing a private/interna...
# announcements
s
Is there a neat way of accessing a private/internal field from an inline function in a class? I'd rather not make the field public as it's internal state that shouldn't be poked from the outside.
i
Make it
internal
and annotate with
@PublishedApi
. Note that the field will become effectively public, just not visible from the outside.
👍 1
s
Awesome, this solves everything. Thanks!