File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed
compiler/src/dotty/tools/dotc/transform/patmat Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -371,7 +371,7 @@ class SpaceEngine(implicit ctx: Context) extends SpaceLogic {
371
371
}
372
372
}
373
373
374
- /* Whether the extractor method type is irrefutable */
374
+ /* Whether the extractor is irrefutable */
375
375
def irrefutable (unapp : tpd.Tree ): Boolean = {
376
376
// TODO: optionless patmat
377
377
unapp.tpe.widen.resultType.isRef(scalaSomeClass) ||
@@ -466,7 +466,7 @@ class SpaceEngine(implicit ctx: Context) extends SpaceLogic {
466
466
467
467
def isEqualType (tp1 : Type , tp2 : Type ): Boolean = tp1 =:= tp2
468
468
469
- /** Parameter types of the case class type `tp` */
469
+ /** Parameter types of the case class type `tp`. Adapted from `unapplyPlan` in patternMatcher */
470
470
def signature (unapp : Type , unappSym : Symbol , argLen : Int ): List [Type ] = {
471
471
def caseClass = unappSym.owner.linkedClass
472
472
lazy val caseAccessors = caseClass.caseAccessors.filter(_.is(Method ))
You can’t perform that action at this time.
0 commit comments