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

enum constant initializer parsing

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • 1.8-rc-4
    • 2.2.0-beta-1
    • parser
    • None

    Description

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

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

      Attachments

        Activity

          People

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

            Dates

              Created:
              Updated:
              Resolved: