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

Property expressions for extension methods starting with 'is' fail STC

    XMLWordPrintableJSON

    Details

      Description

      Example:

      import groovy.transform.TypeChecked
      void test() {
          assert !'abc'.allWhitespace
      }
      

      The code above fails static type checking with the following error:

      [Static type checking] - No such property: allWhitespace for class: java.lang.String
      

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                shils Shil Sinha
                Reporter:
                shils Shil Sinha
              • Votes:
                0 Vote for this issue
                Watchers:
                2 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: