Skip to content

Commit f747d2c

Browse files
committed
address review feedback
1 parent 5777384 commit f747d2c

File tree

1 file changed

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

1 file changed

+1
-9
lines changed

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

Lines changed: 1 addition & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -628,15 +628,7 @@ class SpaceEngine(implicit ctx: Context) extends SpaceLogic {
628628

629629
/** Display spaces */
630630
def show(s: Space): String = {
631-
def params(tp: Type): List[Type] = {
632-
val ktor = tp.classSymbol.primaryConstructor.info
633-
val meth = ktor match {
634-
case ktor: PolyType =>
635-
ktor.instantiate(tp.classSymbol.typeParams.map(_.typeRef)).asSeenFrom(tp, tp.classSymbol)
636-
case _ => ktor
637-
}
638-
meth.firstParamTypes.map(_.asSeenFrom(tp, tp.classSymbol))
639-
}
631+
def params(tp: Type): List[Type] = tp.classSymbol.primaryConstructor.info.firstParamTypes
640632

641633
/** does the companion object of the given symbol have custom unapply */
642634
def hasCustomUnapply(sym: Symbol): Boolean = {

0 commit comments

Comments
 (0)