Skip to content

Commit e32fedb

Browse files
committed
Logging deep subtype recusions
(noe showed up when reading scala and dotty).
1 parent c1af574 commit e32fedb

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

src/dotty/tools/dotc/core/TypeComparers.scala

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -42,8 +42,10 @@ object TypeComparers {
4242
}
4343

4444
def monitoredIsSubType(tp1: Type, tp2: Type) = {
45-
if (pendingSubTypes == null)
45+
if (pendingSubTypes == null) {
4646
pendingSubTypes = new mutable.HashSet[(Type, Type)]
47+
ctx.log(s"!!! deep subtype recursion involving $tp1 <:< $tp2")
48+
}
4749
val p = (tp1, tp2)
4850
!pendingSubTypes(p) && {
4951
try {

0 commit comments

Comments
 (0)