Skip to content

Commit 52f3c08

Browse files
committed
Dealias types when checking contra-variant caps
1 parent 91fd6c2 commit 52f3c08

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

compiler/src/dotty/tools/dotc/cc/CaptureOps.scala

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -289,7 +289,7 @@ extension (tp: Type)
289289
var ok = true
290290
def traverse(t: Type): Unit =
291291
if ok then
292-
t match
292+
t.dealias match
293293
case CapturingType(_, cs) if cs.isUniversal && variance <= 0 =>
294294
ok = false
295295
case _ =>

0 commit comments

Comments
 (0)