Skip to content

Commit 0dd1aba

Browse files
committed
Don't stop at LazyRefs when computing structural variances
1 parent 2e166b7 commit 0dd1aba

File tree

1 file changed

+0
-2
lines changed

1 file changed

+0
-2
lines changed

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

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -116,8 +116,6 @@ object Variances {
116116
def apply(x: Unit, t: Type): Unit = t match
117117
case t: TypeParamRef if t.binder eq lam =>
118118
lam.typeParams(t.paramNum).storedVariance &= varianceFromInt(variance)
119-
case _: LazyRef =>
120-
x
121119
case _ =>
122120
foldOver(x, t)
123121
}

0 commit comments

Comments
 (0)