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

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

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

            No work has yet been logged on this issue.

            People

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

              Dates

                Created:
                Updated:
                Resolved: