Details
-
Bug
-
Status: Closed
-
Major
-
Resolution: Fixed
-
4.0.0-rc-2
-
None
Description
The restricted identifier "sealed" is not usable for a variable or member name any longer.
def sealed = false // fails to parse def record = false // okay def permits = false // okay class C { def sealed = false // fails to parse def record = false // okay def permits = false // okay }
And this should still work as minus: "{ non, sealed -> return non-sealed }"
Attachments
Issue Links
- is cloned by
-
GROOVY-10437 "non-sealed" as expression fails (keyword conflict) whereas "non - sealed" is fine
- Open