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

continue in switch generates verificartion error

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

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • 1.0-beta-5
    • 1.0-beta-6
    • class generator
    • None

    Description

      i = 0
      while (true) {
      i++;
      switch

      { case 3: continue case 5: break }

      System.out.println;
      if (i ==10) break;
      }

      The continue keyword works if put outside of the switch

      Attachments

        Activity

          This comment will be Viewable by All Users Viewable by All Users
          Cancel

          People

            jstrachan James Strachan
            bingran Bing Ran
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Slack

                Issue deployment