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 c5a3b5c commit adc4dd3Copy full SHA for adc4dd3
docs/docs/internals/syntax.md
@@ -105,7 +105,7 @@ yield
105
106
```
107
as derives extension inline on opaque open using
108
-~ * | & + -
+* + -
109
110
111
## Context-free Syntax
docs/docs/reference/enums/desugarEnums.md
@@ -196,6 +196,9 @@ Cases such as `case C` expand to a `@static val` as opposed to a `val`. This all
196
197
### Other Rules
198
199
-A normal case class which is not produced from an enum case is not allowed to extend
+ - A normal case class which is not produced from an enum case is not allowed to extend
200
`scala.Enum`. This ensures that the only cases of an enum are the ones that are
201
explicitly declared in it.
202
+
203
+ - If an enum case has an extends clause, the enum class must be one of the
204
+ classes that's extended.
0 commit comments