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 6b13112 commit fa0a25fCopy full SHA for fa0a25f
compiler/src/dotty/tools/dotc/ast/Desugar.scala
@@ -320,7 +320,8 @@ object desugar {
320
val constrTparams = impliedTparams.map(toDefParam)
321
val constrVparamss =
322
if (originalVparamss.isEmpty) { // ensure parameter list is non-empty
323
- if (isCaseClass) ctx.error(CaseClassMissingParamList(cdef), cdef.namePos)
+ if (isCaseClass && originalTparams.isEmpty)
324
+ ctx.error(CaseClassMissingParamList(cdef), cdef.namePos)
325
ListOfNil
326
}
327
else originalVparamss.nestedMap(toDefParam)
0 commit comments