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
105105
106106```
107107as derives extension inline on opaque open using
108- ~ * | & + -
108+ * + -
109109```
110110
111111## 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
196196
197197### Other Rules
198198
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
200200`scala.Enum`. This ensures that the only cases of an enum are the ones that are
201201explicitly 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