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

CLONE -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.1-beta-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

        1. screenshot-1.jpg
          26 kB
          Rael G.C.

          Issue Links

            Activity

              People

              • Assignee:
                codevise Dierk K├Ânig
                Reporter:
                rael_gc Rael G.C.
              • Votes:
                0 Vote for this issue
                Watchers:
                0 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: