Details
-
Type:
Bug
-
Status:
Closed
-
Priority:
Major
-
Resolution: Duplicate
-
Affects Version/s: 1.8.4
-
Fix Version/s: None
-
Component/s: Compiler
-
Labels:None
-
Number of attachments :
Description
Enums with constructors work. Overriding methods in enums work. But overriding methods in enums with constructors doesn't work.
Example:
enum X {
A(1) { String f()
},
B(2) { String f()
},
C(3),
D(4)
X(int i) {}
String f()
}
Now calling X.A.f() will return "not A or B."
Fixed as part of
GROOVY-6065