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

Chained multiple assignment parsing fail

    XMLWordPrintableJSON

    Details

    • Type: Improvement
    • Status: Closed
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 2.5.0-alpha-1
    • Component/s: parser
    • Labels:
      None

      Description

      def a, b, c, d
      (a, b) = [1, 2]           
      (c, d) = (a, b) = [1, 2]  // fails, ')' expected after 'a'
      (c, d) = a = (a, b) = [1, 2] // works though
      

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                paulk Paul King
                Reporter:
                daniilo Daniil Ovchinnikov
              • Votes:
                0 Vote for this issue
                Watchers:
                3 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: