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

Property expressions for extension methods on primitives fail STC

    XMLWordPrintableJSON

Details

    Description

      If we include groovy's TimeCategory as an extension class in an extension module, we can make method calls like 3.getDays() in type checked code, but we cannot call that same method as a property i.e. 3.days fails static type checking.

      Attachments

        Issue Links

          Activity

            People

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

              Dates

                Created:
                Updated:
                Resolved: