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

Unexpected behaviour of in operator on an Iterable

Attach filesAttach ScreenshotVotersWatch issueWatchersCreate sub-taskLinkCloneUpdate Comment AuthorReplace String in CommentUpdate Comment VisibilityDelete Comments
    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Closed
    • Major
    • Resolution: Fixed
    • 2.4.7
    • 5.0.0-alpha-1
    • groovy-jdk
    • None

    Description

      IMHO it's quite confusing that I can't use the in operator on an iterable (although not an array/collection) with the semantics of "contains".

      This can lead to actual errors if you don't pay attention.

      Attachments

        Issue Links

        Activity

          This comment will be Viewable by All Users Viewable by All Users
          Cancel

          People

            emilles Eric Milles
            mauromol Mauro Molinari
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Slack

                Issue deployment