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

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

Attach filesAttach ScreenshotVotersWatch issueWatchersCreate sub-taskLinkCloneUpdate Comment AuthorReplace String in CommentUpdate Comment VisibilityDelete Comments
    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

          This comment will be Viewable by All Users Viewable by All Users
          Cancel

          People

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

            Dates

              Created:
              Updated:
              Resolved:

              Slack

                Issue deployment