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

for in where the control variable id used in the range specification doesn't work

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • 1.0-beta-4
    • 1.0-beta-4
    • None
    • None

    Description

      a = 1
      b = 5

      for (a in a..b)
      println a

      prints:

      1
      1
      1
      1
      1

      It should have printed

      1
      2
      3
      4
      5

      Attachments

        Activity

          People

            Unassigned Unassigned
            tug John Wilson
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: