Skip to content

Commit 2d02bf1

Browse files
committed
give private dollarvalues val in enum companion synthetic flag
1 parent ca6b1c6 commit 2d02bf1

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)