File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -327,16 +327,16 @@ object tpd extends Trees.Instance[Type] with TypedTreeInfo {
327
327
if (tp.isType) TypeTree (tp)
328
328
else if (prefixIsElidable(tp)) Ident (tp)
329
329
else if (tp.symbol.is(Module ) && ctx.owner.isContainedIn(tp.symbol.moduleClass))
330
- correctForPath (This (tp.symbol.moduleClass.asClass))
330
+ followOuterLinks (This (tp.symbol.moduleClass.asClass))
331
331
else tp.prefix match {
332
- case pre : SingletonType => correctForPath (singleton(pre)).select(tp)
332
+ case pre : SingletonType => followOuterLinks (singleton(pre)).select(tp)
333
333
case pre => SelectFromTypeTree (TypeTree (pre), tp)
334
334
} // no checks necessary
335
335
336
336
def ref (sym : Symbol )(implicit ctx : Context ): Tree =
337
337
ref(NamedType (sym.owner.thisType, sym.name, sym.denot))
338
338
339
- private def correctForPath (t : Tree )(implicit ctx : Context ) = t match {
339
+ private def followOuterLinks (t : Tree )(implicit ctx : Context ) = t match {
340
340
case t : This if ctx.erasedTypes && ! (t.symbol == ctx.owner.enclosingClass || t.symbol.isStaticOwner) =>
341
341
// after erasure outer paths should be respected
342
342
new ExplicitOuter .OuterOps (ctx).path(t.tpe.widen.classSymbol)
You can’t perform that action at this time.
0 commit comments