File tree Expand file tree Collapse file tree 2 files changed +5
-2
lines changed Expand file tree Collapse file tree 2 files changed +5
-2
lines changed Original file line number Diff line number Diff line change @@ -105,7 +105,7 @@ yield
105
105
106
106
```
107
107
as derives extension inline on opaque open using
108
- ~ * | & + -
108
+ * + -
109
109
```
110
110
111
111
## Context-free Syntax
Original file line number Diff line number Diff line change @@ -196,6 +196,9 @@ Cases such as `case C` expand to a `@static val` as opposed to a `val`. This all
196
196
197
197
### Other Rules
198
198
199
- A normal case class which is not produced from an enum case is not allowed to extend
199
+ - A normal case class which is not produced from an enum case is not allowed to extend
200
200
`scala.Enum`. This ensures that the only cases of an enum are the ones that are
201
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.
You can’t perform that action at this time.
0 commit comments