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

Static import of property accessor for type in same unit

    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

            People

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

              Dates

                Created:
                Updated:
                Resolved: