groovy

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

Details

  • Type: Improvement Improvement
  • Status: Closed Closed
  • Priority: Major Major
  • Resolution: Fixed
  • Affects Version/s: None
  • Fix Version/s: 1.1-rc-1
  • Component/s: parser, parser-antlr
  • Labels:
    None
  • Number of attachments :
    0

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" }

Activity

Hide
Guillaume Laforge added a comment -

We also mentioned that most other keywords if not all could be allowed after a dot.

Show
Guillaume Laforge added a comment - We also mentioned that most other keywords if not all could be allowed after a dot.

People

Vote (0)
Watch (0)

Dates

  • Created:
    Updated:
    Resolved: