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

list.putAt(EmptyRange) doesn't obey position

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • 1.0-JSR-2
    • 1.0-JSR-3
    • groovy-jdk
    • None

    Description

      x = [0,1,2,3]
      x[1..<1] = [9,9,9]
      assert x == [0,9,9,9,123]

      but currently is [9,9,9,0,1,2,3]
      i.e. the position of the EmptyRange is ignored

      Attachments

        Activity

          People

            phkim Kim, Pilho
            codevise Dierk König
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: