Skip to content

Commit 89d17b9

Browse files
1 parent 09660b7 commit 89d17b9

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1253,7 +1253,7 @@ class TypeComparer(@constructorOnly initctx: Context) extends ConstraintHandling
12531253
val savedSuccessCount = successCount
12541254
try
12551255
recCount += 1
1256-
if recCount >= Config.LogPendingSubTypesThreshold then monitored = true
1256+
if recCount >= Config.LogPendingSubTypesThreshold && !ctx.settings.YnoDeepSubtypes.value then monitored = true
12571257
val result = if monitored then monitoredIsSubType else firstTry
12581258
recCount -= 1
12591259
if !result then

0 commit comments

Comments
 (0)