arekolek
05/13/2018, 1:15 PMvar countGets: Int = 0
get() = ++field
@Deprecated("Property is read-only", level = DeprecationLevel.ERROR)
set(value) = throw UnsupportedOperationException()
Is probably closest to what I want. Thanks for the suggestions! Maybe delegate would be nicer, but I'm not invested in this enough right now 😛
I wonder why it's deprecated though