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

Using getter/setter without property and @DelegatesTo doesn't work

    Details

      Description

      class Cheese{
       
        static void create(@DelegatesTo(strategy = DELEGATE_FIRST, value = Cheese)Closure c){
      
        }
        
        void setCamember(@DelegatesTo(strategy = DELEGATE_FIRST, value = Camember)Closure c){
        }
      }
      
      //..
      
      Cheese.create{
        camember = { } //compilation fail
      }
      
      

        Attachments

          Activity

            People

            • Assignee:
              melix Cédric Champeau
              Reporter:
              pred Stéphane Maldini
            • Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: