[ https://issues.apache.org/jira/browse/GROOVY-10433?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17467036#comment-17467036 ]
Paul King commented on GROOVY-10433: ------------------------------------ Can you give me more info on where it fails. The following seems to work fine in the groovyConsole: {code:java} class Foo { def as = 1 def in = 2 def trait = 3 def sum = as + in + trait } def as = 10 def in = 20 def trait = 30 assert 66 == new Foo().sum + as + in + trait {code} > "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)