We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 981f8e6 commit c25d11cCopy full SHA for c25d11c
compiler/src/dotty/tools/dotc/core/TypeComparer.scala
@@ -336,7 +336,7 @@ class TypeComparer(@constructorOnly initctx: Context) extends ConstraintHandling
336
*/
337
inline def tryHandleCaptureVars: Int =
338
if !(isCaptureCheckingOrSetup && isCapSet(tp1) && isCapSet(tp2)) then -1
339
- else if (captureSet(tp1).subCaptures(captureSet(tp2), true).isOK) then 1
+ else if (captureSet(tp1).subCaptures(captureSet(tp2), frozenConstraint).isOK) then 1
340
else 0
341
342
def firstTry: Boolean = tp2 match {
0 commit comments