Uploaded image for project: 'Groovy'
  1. Groovy
  2. GROOVY-10433

"sealed" not usable as a restricted identifier

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • 4.0.0-rc-2
    • 4.0.0
    • parser-antlr4
    • 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

          Activity

            People

              paulk Paul King
              emilles Eric Milles
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:

                Time Tracking

                  Estimated:
                  Original Estimate - Not Specified
                  Not Specified
                  Remaining:
                  Remaining Estimate - 0h
                  0h
                  Logged:
                  Time Spent - 20m
                  20m