[
https://issues.apache.org/jira/browse/GROOVY-6689?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Eric Milles updated GROOVY-6689:
--------------------------------
Labels: trait traits (was: traits)
> Support pre/postfix operations in traits
> ----------------------------------------
>
> Key: GROOVY-6689
> URL: https://issues.apache.org/jira/browse/GROOVY-6689
> Project: Groovy
> Issue Type: Improvement
> Affects Versions: 2.3.0-beta-1
> Reporter: Cédric Champeau
> Priority: Major
> Labels: trait, traits
>
> The current implementation of traits do not allow the use of pre/postfix
> operations in traits on fields or properties which are defined within the
> trait. It is however possible to use the {{+=}} operator.
> The difficult part is that unlike {{+=}}, pre/postfix operations return a
> value, and it's hard to have something which is rewritable while being still
> statically compilable and without changing the semantics of the code.
--
This message was sent by Atlassian Jira
(v8.3.4#803005)