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

Empty Range (0..<0) broken in List.getAt(Range)

    XMLWordPrintableJSON

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: 1.0-JSR-2
    • Fix Version/s: 1.0-JSR-3
    • Component/s: groovy-jdk
    • Labels:
      None

      Description

      def list = [0,1,2,3]
      assert list[0..<0] == [] , 'empty range'// todo: fix (evaluates to [0])

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                codevise Dierk König
                Reporter:
                codevise Dierk König
              • Votes:
                0 Vote for this issue
                Watchers:
                0 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: