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 dcd7ca2 commit bac0586Copy full SHA for bac0586
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 at
663
+least as strong as the restrictions implied by that modifier. This ensures
664
+that we can specify those errors without mentioning an exception for enum
665
+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