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

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

    XMLWordPrintableJSON

Details

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

    Description

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

      Attachments

        Issue Links

          Activity

            People

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

              Dates

                Created:
                Updated:
                Resolved: