We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 73d7241 commit 86fc594Copy full SHA for 86fc594
accepted/future-releases/class-modifiers/feature-specification.md
@@ -657,6 +657,13 @@ we can specify the restrictions imposed by modifiers._
657
658
### Basic restrictions
659
660
+With respect to compile-time errors caused by missing required class
661
+modifiers, every `enum` declaration is considered to have the modifier
662
+`final`. *An enum declaration is always subject to restrictions which are
663
+at least as strong as the restrictions implied by that modifier. This
664
+ensures that we can specify those errors without mentioning an exception
665
+for enum declarations in every rule.*
666
+
667
It's a compile-time error if:
668
669
* A declaration depends directly on a `sealed` declaration from another
0 commit comments