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

Chained multiple assignment parsing fail

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Closed
    • Major
    • Resolution: Fixed
    • None
    • 2.5.0-alpha-1
    • parser
    • 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

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

              Dates

                Created:
                Updated:
                Resolved: