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

@TypeChecked Closure methods/properties not recognized inside closure defition

    XMLWordPrintableJSON

Details

    Description

      The compiler fails to recognize the delegate variable and getOwner method on the class definition below:

      @TypeChecked
      class StaticGroovy {
          def bar() {
              def foo = {[ this, delegate, getOwner()]}
          }
      }
      

      Attachments

        Activity

          People

            melix C├ędric Champeau
            rgarcia Renato Garcia
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: