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 38b3626 commit ecac7b3Copy full SHA for ecac7b3
src/dotty/tools/dotc/ast/Desugar.scala
@@ -229,14 +229,11 @@ object desugar {
229
New(AppliedTypeTree(tycon, targs), Nil)
230
}
231
232
- // The desugared parents: AnyRef, in case parents are Nil.
233
- // Case classes also get a ProductN parent
+ // Case classes get a ProductN parent
234
var parents1 = parents
235
val n = vparamss.head.length
236
if ((mods is Case) && 2 <= n && n <= Definitions.MaxTupleArity)
237
parents1 = parents1 :+ productConstr(n)
238
- if (parents.isEmpty)
239
- parents1 = New(anyRef, Nil) :: parents1
240
241
// The thicket which is the desugared version of the companion object
242
// synthetic object C extends parentTpt { defs }
0 commit comments