Skip to content

Commit c395b23

Browse files
authored
Merge pull request #7563 from bishabosha/make-dollarvalues-synthetic
Give private dollarvalues val in enum companion synthetic flag
2 parents ca6b1c6 + 2d02bf1 commit c395b23

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

compiler/src/dotty/tools/dotc/ast/DesugarEnums.scala

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -99,7 +99,7 @@ object DesugarEnums {
9999
val privateValuesDef =
100100
ValDef(nme.DOLLAR_VALUES, TypeTree(),
101101
New(TypeTree(defn.EnumValuesClass.typeRef.appliedTo(enumClass.typeRef :: Nil)), ListOfNil))
102-
.withFlags(Private)
102+
.withFlags(Private | Synthetic)
103103

104104
val valuesOfExnMessage = Apply(
105105
Select(Literal(Constant("key not found: ")), "concat".toTermName),

0 commit comments

Comments
 (0)