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

Allow static and default to be used as property names after the dereference operator

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Closed
    • Major
    • Resolution: Fixed
    • None
    • 1.1-rc-1
    • parser, parser-antlr2
    • None

    Description

      We should allow the static and default keywords to be used after the . dereference operator so that it makes using ExpandoMetaClass and other mechanisms less clunky

      Foo.metaClass.static.bar =

      { "hello" }

      Attachments

        Activity

          People

            guillaume Guillaume Sauthier
            graemerocher Graeme Rocher
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: