Uploaded image for project: 'Groovy'
  1. Groovy
  2. GROOVY-4794

enum constant initializer parsing

    XMLWordPrintableJSON

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: 1.8-rc-4
    • Fix Version/s: 2.2.0-beta-1
    • Component/s: parser
    • Labels:
      None

      Description

      can't compile enum constant initializer which contains method without explicit type declaration

      enum E {
        enConst {
          def foo(){}
        }
      }
      

        Attachments

          Activity

            People

            • Assignee:
              paulk Paul King
              Reporter:
              mxm-groovy Maxim Medvedev
            • Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: