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 e3fbf30 commit baa845bCopy full SHA for baa845b
compiler/src/dotty/tools/dotc/core/Types.scala
@@ -3851,7 +3851,7 @@ object Types {
3851
mapOverLambda
3852
3853
case tp @ TypeArgRef(prefix, _, _) =>
3854
- derivedTypeArgRef(tp, atVariance(0)(this(prefix)))
+ derivedTypeArgRef(tp, atVariance(variance max 0)(this(prefix)))
3855
3856
case tp @ SuperType(thistp, supertp) =>
3857
derivedSuperType(tp, this(thistp), this(supertp))
@@ -4253,7 +4253,7 @@ object Types {
4253
this(x, tp.info)
4254
4255
4256
- atVariance(0)(this(x, prefix))
+ atVariance(variance max 0)(this(x, prefix))
4257
4258
case SuperType(thistp, supertp) =>
4259
this(this(x, thistp), supertp)
0 commit comments