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 d3830ac commit 5896166Copy full SHA for 5896166
compiler/src/dotty/tools/dotc/transform/SyntheticMethods.scala
@@ -59,7 +59,7 @@ class SyntheticMethods(thisPhase: DenotTransformer) {
59
def syntheticMethods(clazz: ClassSymbol)(implicit ctx: Context): List[Tree] = {
60
val clazzType = clazz.appliedRef
61
lazy val accessors =
62
- if (isDerivedValueClass(clazz)) clazz.paramAccessors
+ if (isDerivedValueClass(clazz)) clazz.paramAccessors.take(1) // Tail parameters can only be `unused`
63
else clazz.caseAccessors
64
65
val symbolsToSynthesize: List[Symbol] =
0 commit comments