Details
-
Type:
Improvement
-
Status:
Closed
-
Priority:
Minor
-
Resolution: Fixed
-
Affects Version/s: None
-
Fix Version/s: 1.8.4, 2.0-beta-1
-
Component/s: None
-
Labels:None
-
Number of attachments :
Description
The intent would be to make the following example work. Currently the TupleConstructor annotation is ignored and unless an explicit constructor is added, the example will fail.
@groovy.transform.TupleConstructor enum Operator { PLUS('+'), MINUS('-') String symbol } assert Operator.PLUS.next() == Operator.MINUS
Added by splitting EnumVisitor into two so that the special enum constructor processing occurs after the TupleConstructor transform has completed.