@@ -186,7 +186,7 @@ object Types {
186186 * `<this> . <symd>` is an actual argument reference, i.e. `this` is different
187187 * from the ThisType of `symd`'s owner.
188188 */
189- def isArgPrefix (symd : SymDenotation )(implicit ctx : Context ) =
189+ def isArgPrefixOf (symd : SymDenotation )(implicit ctx : Context ) =
190190 symd.is(ClassTypeParam ) && {
191191 this match {
192192 case tp : ThisType => tp.cls ne symd.owner
@@ -1671,7 +1671,7 @@ object Types {
16711671 val symd = sym.lastKnownDenotation
16721672 if (symd.validFor.runId != ctx.runId && ! ctx.stillValid(symd))
16731673 finish(memberDenot(symd.initial.name, allowPrivate = false ))
1674- else if (prefix.isArgPrefix (symd))
1674+ else if (prefix.isArgPrefixOf (symd))
16751675 finish(argDenot(sym.asType))
16761676 else if (infoDependsOnPrefix(symd, prefix))
16771677 finish(memberDenot(symd.initial.name, allowPrivate = symd.is(Private )))
@@ -1986,7 +1986,7 @@ object Types {
19861986 else if (lastDenotation == null ) NamedType (prefix, designator)
19871987 else designator match {
19881988 case sym : Symbol =>
1989- if (infoDependsOnPrefix(sym, prefix) && ! prefix.isArgPrefix (sym)) {
1989+ if (infoDependsOnPrefix(sym, prefix) && ! prefix.isArgPrefixOf (sym)) {
19901990 val candidate = reload()
19911991 val falseOverride = sym.isClass && candidate.symbol.exists && candidate.symbol != symbol
19921992 // A false override happens if we rebind an inner class to another type with the same name
@@ -3986,7 +3986,7 @@ object Types {
39863986 * underlying bounds to a range, otherwise return the expansion.
39873987 */
39883988 def expandParam (tp : NamedType , pre : Type ) = tp.argForParam(pre) match {
3989- case arg @ TypeRef (pre, _) if pre.isArgPrefix (arg.symbol) =>
3989+ case arg @ TypeRef (pre, _) if pre.isArgPrefixOf (arg.symbol) =>
39903990 arg.info match {
39913991 case TypeBounds (lo, hi) => range(atVariance(- variance)(reapply(lo)), reapply(hi))
39923992 case arg => reapply(arg)
0 commit comments