How to make a property in Kotlin that has a private getter (or just do not have it) but has a public setter?
var status
private get
doesn't work with an error: Getter visibility must be the same as property visibility
In my case, the reason is for Java interop: I want my Java code to be able to call setStatus
but not getStatus
.