Details
-
Type:
Bug
-
Status:
Closed
-
Priority:
Major
-
Resolution: Duplicate
-
Affects Version/s: 1.6
-
Fix Version/s: None
-
Component/s: None
-
Labels:None
-
Environment:Mac osX 10.5, Java 6
Description
enum MyEnum { a { void something() {} } abstract void something() } MyEnum.a.something()
code above should work (if I extrapolate from Java) but brings in Groovy console:
1 compilation error:
Unknown type: OBJBLOCK at line: 2 column: 7. File: ConsoleScript10 at
Issue Links
- duplicates
-
GROOVY-2443
Enum does not support instance (value) specific methods
-