Skip to content

Commit 0aeb02c

Browse files
committed
More info on h comparisons in ExplainingTypeComparer
1 parent 16a28ac commit 0aeb02c

File tree

1 file changed

+8
-1
lines changed

1 file changed

+8
-1
lines changed

compiler/src/dotty/tools/dotc/core/TypeComparer.scala

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1511,10 +1511,17 @@ class ExplainingTypeComparer(initctx: Context) extends TypeComparer(initctx) {
15111511

15121512
override def compareHkApply2(tp1: Type, tp2: HKApply, tycon2: Type, args2: List[Type]): Boolean = {
15131513
def addendum = ""
1514-
traceIndented(i"compareHkApply $tp1, $tp2$addendum") {
1514+
traceIndented(i"compareHkApply2 $tp1, $tp2$addendum") {
15151515
super.compareHkApply2(tp1, tp2, tycon2, args2)
15161516
}
15171517
}
15181518

1519+
override def compareHkApply1(tp1: HKApply, tycon1: Type, args1: List[Type], tp2: Type): Boolean = {
1520+
def addendum = ""
1521+
traceIndented(i"compareHkApply1 $tp1, $tp2$addendum") {
1522+
super.compareHkApply1(tp1, tycon1, args1, tp2)
1523+
}
1524+
}
1525+
15191526
override def toString = "Subtype trace:" + { try b.toString finally b.clear() }
15201527
}

0 commit comments

Comments
 (0)