hi! i have a var with an internal setter. how can ...
# announcements
i
hi! i have a var with an internal setter. how can i apple @PublishedApi annotation to setter to be able to call it from inlined functions?
Copy code
public lateinit var command: CommandScope
        internal set
s
@ilya.gorbunov
i
@Iaroslav Postovalov Seems that you can't now, because
@PublishedApi
isn't applicable to getters or setters. Could you file an issue about that?
Ok, I've filed https://youtrack.jetbrains.com/issue/KT-33249 myself, feel free to follow or vote.
i
thanks! i checked Slack rarely in the last.
by the way, i currently use workaround with backing field.
image.png