GROOVY-9618: index "static getX()" as "X" if class field X also exists

    // one meta-property "X"
    class C {
      static private X
      static getX()
    }

    // one meta-property "x"
    class C {
      static private x
      static getX()
    }

    // one meta-property "x" and one meta-field "X"
    class C {
      static private x, X
      static getX()
    }

    // one class meta-property "X" and one instance meta-field "x"
    class C {
      static private X
      static getX()
      private x
    }
2 files changed