Details
-
Bug
-
Status: Closed
-
Major
-
Resolution: Fixed
-
1.6.7
-
None
-
None
Description
The compilation of
class Test { enum Color { R, G, B public static Color[] ALL_COLORS = [R, G, B]; } }
fails with
unable to resolve class Color[] @ line 4, column 5. public static Color[] ALL_COLORS = [R, G, B]; ^ 1 error
However the compilation of following code goes through (top-level enum):
enum Color { R, G, B public static Color[] ALL_COLORS = [R, G, B]; }
Attachments
Issue Links
- relates to
-
GROOVY-3993 NPE when trying to access member of a static array from an inner static enum
- Closed