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

Static import of property accessor for type in same unit

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

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • None
    • 3.0.18, 4.0.13
    • None
    • None

    Description

      Consider the following:

      import static Type.setP as store
      class Type {
        static p
      }
      @groovy.transform.CompileStatic
      void test() {
        store('') // not recognized if Type is in same unit; property methods not there yet
      }
      test()
      

      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