Skip to content

Commit 49e2bcd

Browse files
1 parent 6a2a649 commit 49e2bcd

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
@@ -1257,7 +1257,7 @@ class TypeComparer(@constructorOnly initctx: Context) extends ConstraintHandling
12571257
val savedSuccessCount = successCount
12581258
try
12591259
recCount += 1
1260-
if recCount >= Config.LogPendingSubTypesThreshold then monitored = true
1260+
if recCount >= Config.LogPendingSubTypesThreshold && !ctx.settings.YnoDeepSubtypes.value then monitored = true
12611261
val result = if monitored then monitoredIsSubType else firstTry
12621262
recCount -= 1
12631263
if !result then

0 commit comments

Comments
 (0)