@@ -186,7 +186,7 @@ object Types {
186
186
* `<this> . <symd>` is an actual argument reference, i.e. `this` is different
187
187
* from the ThisType of `symd`'s owner.
188
188
*/
189
- def isArgPrefix (symd : SymDenotation )(implicit ctx : Context ) =
189
+ def isArgPrefixOf (symd : SymDenotation )(implicit ctx : Context ) =
190
190
symd.is(ClassTypeParam ) && {
191
191
this match {
192
192
case tp : ThisType => tp.cls ne symd.owner
@@ -1671,7 +1671,7 @@ object Types {
1671
1671
val symd = sym.lastKnownDenotation
1672
1672
if (symd.validFor.runId != ctx.runId && ! ctx.stillValid(symd))
1673
1673
finish(memberDenot(symd.initial.name, allowPrivate = false ))
1674
- else if (prefix.isArgPrefix (symd))
1674
+ else if (prefix.isArgPrefixOf (symd))
1675
1675
finish(argDenot(sym.asType))
1676
1676
else if (infoDependsOnPrefix(symd, prefix))
1677
1677
finish(memberDenot(symd.initial.name, allowPrivate = symd.is(Private )))
@@ -1982,7 +1982,7 @@ object Types {
1982
1982
else if (lastDenotation == null ) NamedType (prefix, designator)
1983
1983
else designator match {
1984
1984
case sym : Symbol =>
1985
- if (infoDependsOnPrefix(sym, prefix) && ! prefix.isArgPrefix (sym)) {
1985
+ if (infoDependsOnPrefix(sym, prefix) && ! prefix.isArgPrefixOf (sym)) {
1986
1986
val candidate = reload()
1987
1987
val falseOverride = sym.isClass && candidate.symbol.exists && candidate.symbol != symbol
1988
1988
// A false override happens if we rebind an inner class to another type with the same name
@@ -3973,7 +3973,7 @@ object Types {
3973
3973
* underlying bounds to a range, otherwise return the expansion.
3974
3974
*/
3975
3975
def expandParam (tp : NamedType , pre : Type ) = tp.argForParam(pre) match {
3976
- case arg @ TypeRef (pre, _) if pre.isArgPrefix (arg.symbol) =>
3976
+ case arg @ TypeRef (pre, _) if pre.isArgPrefixOf (arg.symbol) =>
3977
3977
arg.info match {
3978
3978
case TypeBounds (lo, hi) => range(atVariance(- variance)(reapply(lo)), reapply(hi))
3979
3979
case arg => reapply(arg)
0 commit comments