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 7e919b6 commit c0642c4Copy full SHA for c0642c4
compiler/src/dotty/tools/dotc/core/Types.scala
@@ -3864,7 +3864,7 @@ object Types {
3864
mapOverLambda
3865
3866
case tp @ TypeArgRef(prefix, _, _) =>
3867
- derivedTypeArgRef(tp, atVariance(0)(this(prefix)))
+ derivedTypeArgRef(tp, atVariance(variance max 0)(this(prefix)))
3868
3869
case tp @ SuperType(thistp, supertp) =>
3870
derivedSuperType(tp, this(thistp), this(supertp))
@@ -4266,7 +4266,7 @@ object Types {
4266
this(x, tp.info)
4267
4268
4269
- atVariance(0)(this(x, prefix))
+ atVariance(variance max 0)(this(x, prefix))
4270
4271
case SuperType(thistp, supertp) =>
4272
this(this(x, thistp), supertp)
0 commit comments