We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 4649fd9 commit 418b9bdCopy full SHA for 418b9bd
compiler/src/dotty/tools/dotc/core/ConstraintHandling.scala
@@ -499,7 +499,7 @@ trait ConstraintHandling {
499
val inst = tp.instanceOpt
500
if inst.exists then apply(need, inst)
501
else if tp.nestingLevel > maxLevel then
502
- if variance > 0 then nestedVarsLo += tp
+ if variance >= 0 then nestedVarsLo += tp
503
else if variance < 0 then nestedVarsHi += tp
504
else tp.nestingLevel = maxLevel
505
// For invariant type variables, we use a different strategy.
0 commit comments