Delegated properties should be read-only #463
Labels
compiler-plugin
Issues related to the atomicfu-compiler-plugin
deprecation
A feature that is going to deprecated and removed in future releases
Currently, to expose the value of an atomic property to the public, one can declare a delegated property like this:
a++ // This is not an atomic increment !
Suggestion
To prevent erroneous usages, I suggest allowing only read-only delegated properties:
Additionally, delegation to atomic factory should be deprecated too, in favor for declaration of @volatile property
The text was updated successfully, but these errors were encountered: