File tree Expand file tree Collapse file tree 1 file changed +1
-9
lines changed
compiler/src/dotty/tools/dotc/transform/patmat Expand file tree Collapse file tree 1 file changed +1
-9
lines changed Original file line number Diff line number Diff line change @@ -628,15 +628,7 @@ class SpaceEngine(implicit ctx: Context) extends SpaceLogic {
628
628
629
629
/** Display spaces */
630
630
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
640
632
641
633
/** does the companion object of the given symbol have custom unapply */
642
634
def hasCustomUnapply (sym : Symbol ): Boolean = {
You can’t perform that action at this time.
0 commit comments