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

STC method pointer or reference to generated property method

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

Details

    • Bug
    • Status: Closed
    • Minor
    • Resolution: Fixed
    • None
    • 4.0.5, 2.5.19, 3.0.13
    • None
    • None

    Description

      Consider the following:

      class C { def foo }
      @groovy.transform.TypeChecked
      void test(List<C> list) {
        print list.collect(C.&getFoo) // Cannot find matching method C#getFoo
      }
      test([new C(foo:'bar'), new C(foo:'baz')])
      

      Attachments

        Issue Links

        Activity

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

          People

            emilles Eric Milles
            emilles Eric Milles
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Slack

                Issue deployment