@@ -2035,7 +2035,7 @@ object Types {
20352035 if (0 <= idx && idx < args.length) {
20362036 val argInfo = args(idx) match {
20372037 case arg : TypeBounds =>
2038- val v = param.paramVariance
2038+ val v = param.paramVarianceSign
20392039 val pbounds = param.paramInfo
20402040 if (v > 0 && pbounds.loBound.dealiasKeepAnnots.isBottomType) TypeAlias (arg.hiBound & rebase(pbounds.hiBound))
20412041 else if (v < 0 && pbounds.hiBound.dealiasKeepAnnots.isTopType) TypeAlias (arg.loBound | rebase(pbounds.loBound))
@@ -2191,7 +2191,7 @@ object Types {
21912191 case base : AndOrType =>
21922192 var tp1 = argForParam(base.tp1)
21932193 var tp2 = argForParam(base.tp2)
2194- val variance = tparam.paramVariance
2194+ val variance = tparam.paramVarianceSign
21952195 if (isBounds(tp1) || isBounds(tp2) || variance == 0 ) {
21962196 // compute argument as a type bounds instead of a point type
21972197 tp1 = tp1.bounds
@@ -3529,7 +3529,7 @@ object Types {
35293529 pt => List .fill(n)(TypeBounds .empty), pt => defn.AnyType )
35303530
35313531 override def paramName (param : ParamInfo .Of [TypeName ])(implicit ctx : Context ): TypeName =
3532- param.paramName.withVariance(param.paramVariance )
3532+ param.paramName.withVariance(param.paramVarianceSign )
35333533
35343534 /** Distributes Lambda inside type bounds. Examples:
35353535 *
@@ -3585,7 +3585,7 @@ object Types {
35853585 def paramInfo (implicit ctx : Context ): tl.PInfo = tl.paramInfos(n)
35863586 def paramInfoAsSeenFrom (pre : Type )(implicit ctx : Context ): tl.PInfo = paramInfo
35873587 def paramInfoOrCompleter (implicit ctx : Context ): Type = paramInfo
3588- def paramVariance (implicit ctx : Context ): Int = tl.paramNames(n).variance
3588+ def paramVarianceSign (implicit ctx : Context ): Int = tl.paramNames(n).variance
35893589 def paramRef (implicit ctx : Context ): Type = tl.paramRefs(n)
35903590 }
35913591
@@ -4685,7 +4685,7 @@ object Types {
46854685 case arg :: otherArgs if tparams.nonEmpty =>
46864686 val arg1 = arg match {
46874687 case arg : TypeBounds => this (arg)
4688- case arg => atVariance(variance * tparams.head.paramVariance )(this (arg))
4688+ case arg => atVariance(variance * tparams.head.paramVarianceSign )(this (arg))
46894689 }
46904690 val otherArgs1 = mapArgs(otherArgs, tparams.tail)
46914691 if ((arg1 eq arg) && (otherArgs1 eq otherArgs)) args
@@ -4987,7 +4987,7 @@ object Types {
49874987 // @return operation succeeded for all arguments.
49884988 def distributeArgs (args : List [Type ], tparams : List [ParamInfo ]): Boolean = args match {
49894989 case Range (lo, hi) :: args1 =>
4990- val v = tparams.head.paramVariance
4990+ val v = tparams.head.paramVarianceSign
49914991 if (v == 0 ) false
49924992 else {
49934993 if (v > 0 ) { loBuf += lo; hiBuf += hi }
@@ -5105,7 +5105,7 @@ object Types {
51055105 val tparam = tparams.head
51065106 val acc = args.head match {
51075107 case arg : TypeBounds => this (x, arg)
5108- case arg => atVariance(variance * tparam.paramVariance )(this (x, arg))
5108+ case arg => atVariance(variance * tparam.paramVarianceSign )(this (x, arg))
51095109 }
51105110 foldArgs(acc, tparams.tail, args.tail)
51115111 }
0 commit comments