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 ffbb127 commit e34d09eCopy full SHA for e34d09e
compiler/src/dotty/tools/dotc/ast/DesugarEnums.scala
@@ -125,9 +125,8 @@ object DesugarEnums {
125
/** A creation method for a value of enum type `E`, which is defined as follows:
126
*
127
* private def $new(_$ordinal: Int, $name: String) = new E with scala.runtime.EnumValue {
128
- * private[this] def $ordinal = _$ordinal // if deriving from jl.Enum
129
- * def ordinal = _$ordinal // if not deriving from jl.Enum
130
- * override def toString = $name
+ * def ordinal = _$ordinal // if `E` does not derive from jl.Enum
+ * override def toString = $name // if `E` does not derive from jl.Enum
131
* $values.register(this)
132
* }
133
*/
0 commit comments