[ https://issues.apache.org/jira/browse/GROOVY-10433?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17467188#comment-17467188 ]
Paul King commented on GROOVY-10433: ------------------------------------ I have a PR for "sealed" here: https://github.com/apache/groovy/pull/1668 I'd be inclined to clone the issue for the "non-sealed" case. > "sealed" not usable as a restricted identifier > ---------------------------------------------- > > Key: GROOVY-10433 > URL: https://issues.apache.org/jira/browse/GROOVY-10433 > Project: Groovy > Issue Type: Bug > Components: parser-antlr4 > Affects Versions: 4.0.0-rc-2 > Reporter: Eric Milles > Priority: Major > > The restricted identifier "sealed" is not usable for a variable or member > name any longer. > {code:groovy} > 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 > } > {code} > And this should still work as minus: "\{ non, sealed -> return non-sealed \}" -- This message was sent by Atlassian Jira (v8.20.1#820001)