Skip to content

Commit c25d11c

Browse files
committed
Use frozenConstraint in tryHandleCaptureVars
1 parent 981f8e6 commit c25d11c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Diff for: compiler/src/dotty/tools/dotc/core/TypeComparer.scala

+1-1
Original file line numberDiff line numberDiff line change
@@ -336,7 +336,7 @@ class TypeComparer(@constructorOnly initctx: Context) extends ConstraintHandling
336336
*/
337337
inline def tryHandleCaptureVars: Int =
338338
if !(isCaptureCheckingOrSetup && isCapSet(tp1) && isCapSet(tp2)) then -1
339-
else if (captureSet(tp1).subCaptures(captureSet(tp2), true).isOK) then 1
339+
else if (captureSet(tp1).subCaptures(captureSet(tp2), frozenConstraint).isOK) then 1
340340
else 0
341341

342342
def firstTry: Boolean = tp2 match {

0 commit comments

Comments
 (0)