File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed
docs/docs/reference/enums Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -34,12 +34,12 @@ map into `case class`es or `val`s.
34
34
``` scala
35
35
enum E ... { <defs > <cases > }
36
36
```
37
- expands to a ` sealed abstract ` class that extends the ` scala.Enum ` trait and
37
+ expands to a ` sealed abstract ` class that extends the ` scala.reflect. Enum ` trait and
38
38
an associated companion object that contains the defined cases, expanded according
39
39
to rules (2 - 8). The enum class starts with a compiler-generated import that imports
40
40
the names ` <caseIds> ` of all cases so that they can be used without prefix in the class.
41
41
``` scala
42
- sealed abstract class E ... extends <parents > with scala.Enum {
42
+ sealed abstract class E ... extends <parents > with scala.reflect. Enum {
43
43
import E .{ <caseIds> }
44
44
<defs >
45
45
}
You can’t perform that action at this time.
0 commit comments