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

void[] return type causes compiler to fail

Attach filesAttach ScreenshotVotersWatch issueWatchersCreate sub-taskLinkCloneUpdate Comment AuthorReplace String in CommentUpdate Comment VisibilityDelete Comments
    XMLWordPrintableJSON

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: 2.4.13
    • Fix Version/s: 2.5.9, 3.0.0-rc-2
    • Component/s: Compiler
    • Labels:
      None

      Description

      $ cat playground.groovy
      void[] foo() {}
      $ groovy playground.groovy
      BUG! exception in phase 'conversion' in source unit '%path%/playground.groovy' null
      Caused by: java.lang.IllegalArgumentException
      

        Attachments

          Activity

            People

            • Assignee:
              emilles Eric Milles
              Reporter:
              daniilo Daniil Ovchinnikov

              Dates

              • Created:
                Updated:
                Resolved:

                Time Tracking

                Estimated:
                Original Estimate - Not Specified
                Not Specified
                Remaining:
                Remaining Estimate - 0h
                0h
                Logged:
                Time Spent - 0.5h
                0.5h

                  Issue deployment