Jason5lee01/18/2022, 7:28 AM
property that only its
Joffrey01/18/2022, 8:12 AM
to annotate only the getter?
Vampire01/18/2022, 8:55 AM
Joffrey01/18/2022, 8:57 AM
Vampire01/18/2022, 9:33 AM
Joffrey01/18/2022, 9:38 AM
Well then a published api internal val delegating to a non-published api internal varYep, that makes sense if the annotation is not supported on the getter only
you just didn't sound confident that it will workYeah I'm not confident because I never played with
directly, so I prefer to write with caution 🙂 but I see no reason why it shouldn't work
Jason5lee01/18/2022, 9:42 AM
function that returns the value of a private var. Thanks for the answers.
Joffrey01/18/2022, 9:45 AM
Or did you just prefer with a function?
@get:PublishedApi internal var x: Int = 42
Vampire01/18/2022, 9:55 AM
Jason5lee01/18/2022, 9:58 AM