Skip to content

Commit 14276cd

Browse files
committed
use named args to avoid confusion
1 parent 7de84b4 commit 14276cd

File tree

1 file changed

+3
-3
lines changed
  • compiler/src/dotty/tools/dotc/transform/patmat

1 file changed

+3
-3
lines changed

compiler/src/dotty/tools/dotc/transform/patmat/Space.scala

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -642,11 +642,11 @@ class SpaceEngine(implicit ctx: Context) extends SpaceLogic {
642642
/** Display spaces */
643643
def show(s: Space): String = {
644644

645-
// does the companion object of the given symbol have custom unapply
645+
/** does the companion object of the given symbol have custom unapply */
646646
def hasCustomUnapply(sym: Symbol): Boolean = {
647647
val companion = sym.companionModule
648-
companion.findMember(nme.unapply, NoPrefix, Flags.Synthetic).exists ||
649-
companion.findMember(nme.unapplySeq, NoPrefix, Flags.Synthetic).exists
648+
companion.findMember(nme.unapply, NoPrefix, excluded = Synthetic).exists ||
649+
companion.findMember(nme.unapplySeq, NoPrefix, excluded = Synthetic).exists
650650
}
651651

652652
def doShow(s: Space, mergeList: Boolean = false): String = s match {

0 commit comments

Comments
 (0)