Skip to content

Commit 2cd04d8

Browse files
committed
bugfix: Fix issue with renamed methods
1 parent f3e4564 commit 2cd04d8

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -522,7 +522,7 @@ object desugar {
522522
if enumTParams.nonEmpty then
523523
defaultGetters = defaultGetters.map:
524524
case ddef: DefDef =>
525-
val tParams = enumTParams.map(tparam => toMethParam(tparam, KeepAnnotations.All))
525+
val tParams = enumTParams.map(tparam => toDefParam(tparam, keepAnnotations = true))
526526
cpy.DefDef(ddef)(paramss = joinParams(tParams, ddef.trailingParamss))
527527

528528
val (normalizedBody, enumCases, enumCompanionRef) = {

0 commit comments

Comments
 (0)