Skip to content

Commit f1d45a7

Browse files
committed
add comment to link signature to unapplyPlan
1 parent 4290a21 commit f1d45a7

File tree

1 file changed

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

1 file changed

+2
-2
lines changed

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

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -371,7 +371,7 @@ class SpaceEngine(implicit ctx: Context) extends SpaceLogic {
371371
}
372372
}
373373

374-
/* Whether the extractor method type is irrefutable */
374+
/* Whether the extractor is irrefutable */
375375
def irrefutable(unapp: tpd.Tree): Boolean = {
376376
// TODO: optionless patmat
377377
unapp.tpe.widen.resultType.isRef(scalaSomeClass) ||
@@ -466,7 +466,7 @@ class SpaceEngine(implicit ctx: Context) extends SpaceLogic {
466466

467467
def isEqualType(tp1: Type, tp2: Type): Boolean = tp1 =:= tp2
468468

469-
/** Parameter types of the case class type `tp` */
469+
/** Parameter types of the case class type `tp`. Adapted from `unapplyPlan` in patternMatcher */
470470
def signature(unapp: Type, unappSym: Symbol, argLen: Int): List[Type] = {
471471
def caseClass = unappSym.owner.linkedClass
472472
lazy val caseAccessors = caseClass.caseAccessors.filter(_.is(Method))

0 commit comments

Comments
 (0)