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

Stacked cases with switch

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • 1.0-JSR-2
    • 1.0
    • parser-antlr2
    • None

    Description

      If I stack several case branches to be handled by the same statements I get an parser error: Unkown type: "case"
      Example:

      switch(1) {
      case 1:
      case 2:
      println "1 or 2"
      break
      }

      Attachments

        Activity

          People

            paulk Paul King
            tof Christof Vollrath
            Votes:
            1 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: