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

Allow the specification of types when initializing multiple iteration variables in a "for" construct

    Details

      Description

      def( int i, int j) = [0,0] works as a stand alone assignment, but it does not work in the initialization portion of a for. For example, while

      for( (i, j)=[0,0]; i<10;

      {i++; j++ }()){ ... }

      compiles

      for( def( int i, int j)=[0,0]; i<10; {i++; j++ }

      ())

      { ... }

      does not.

        Activity

        Hide
        daniel_sun Daniel Sun added a comment -

        Fixed in the parrot branch

        Show
        daniel_sun Daniel Sun added a comment - Fixed in the parrot branch

          People

          • Assignee:
            daniel_sun Daniel Sun
            Reporter:
            eaclark Ed Clark
          • Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved:

              Development