Skip to content

Commit 1f960d4

Browse files
committed
Allow user-written productElementName
Needed to get the productElementName.scala test to pass when using the 2.13 stdlib
1 parent 1abe134 commit 1f960d4

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
@@ -51,7 +51,7 @@ object desugar {
5151
* case class method if it clashes with a user-defined method?
5252
*/
5353
def isRetractableCaseClassMethodName(name: Name)(implicit ctx: Context): Boolean = name match {
54-
case nme.apply | nme.unapply | nme.unapplySeq | nme.copy => true
54+
case nme.apply | nme.unapply | nme.unapplySeq | nme.copy | nme.productElementName => true
5555
case DefaultGetterName(nme.copy, _) => true
5656
case _ => false
5757
}

0 commit comments

Comments
 (0)