Details
-
Bug
-
Status: Closed
-
Major
-
Resolution: Fixed
-
1.8.6, 2.4.0-beta-3
-
None
Description
The following script:
static getStaticProperty() {} static staticMethod() { staticProperty }
Does not compile and produces the following error:
You misspelled a classname or statically imported field. Please check the spelling. You attempted to use a method 'staticProperty' but left out brackets in a place not allowed by the grammar. @ line 4, column 25. static staticMethod() { staticProperty } ^ 1 error
Attachments
Issue Links
- is related to
-
GROOVY-10078 Allow static variables in Scripts
-
- Closed
-