You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@groovy.apache.org by "Paul King (Jira)" <ji...@apache.org> on 2022/02/03 22:36:00 UTC

[jira] [Closed] (GROOVY-10433) "sealed" not usable as a restricted identifier

     [ https://issues.apache.org/jira/browse/GROOVY-10433?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Paul King closed GROOVY-10433.
------------------------------

> "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
>            Assignee: Paul King
>            Priority: Major
>             Fix For: 4.0.0
>
>          Time Spent: 20m
>  Remaining Estimate: 0h
>
> 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)