We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent f3e4564 commit 2cd04d8Copy full SHA for 2cd04d8
compiler/src/dotty/tools/dotc/ast/Desugar.scala
@@ -522,7 +522,7 @@ object desugar {
522
if enumTParams.nonEmpty then
523
defaultGetters = defaultGetters.map:
524
case ddef: DefDef =>
525
- val tParams = enumTParams.map(tparam => toMethParam(tparam, KeepAnnotations.All))
+ val tParams = enumTParams.map(tparam => toDefParam(tparam, keepAnnotations = true))
526
cpy.DefDef(ddef)(paramss = joinParams(tParams, ddef.trailingParamss))
527
528
val (normalizedBody, enumCases, enumCompanionRef) = {
0 commit comments