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
ilya.gorbunov
08/09/2018, 12:37 AM
Make it
internal
and annotate with
@PublishedApi
.
Note that the field will become effectively public, just not visible from the outside.