File tree Expand file tree Collapse file tree 2 files changed +3
-6
lines changed
compiler/scala/tools/nsc/typechecker
reflect/scala/reflect/internal Expand file tree Collapse file tree 2 files changed +3
-6
lines changed Original file line number Diff line number Diff line change @@ -552,7 +552,6 @@ trait Contexts { self: Analyzer =>
552552 ( (ab.isTerm || ab == rootMirror.RootClass )
553553 || (accessWithin(ab) || accessWithinLinked(ab)) &&
554554 ( ! sym.hasLocalFlag
555- || sym.owner.isImplClass // allow private local accesses to impl classes
556555 || sym.isProtected && isSubThisType(pre, sym.owner)
557556 || pre =:= sym.owner.thisType
558557 )
Original file line number Diff line number Diff line change @@ -1392,11 +1392,9 @@ trait Types extends api.Types { self: SymbolTable =>
13921392 final class UniqueThisType (sym : Symbol ) extends ThisType (sym) with UniqueType { }
13931393
13941394 object ThisType extends ThisTypeExtractor {
1395- def apply (sym : Symbol ): Type = {
1396- if (! phase.erasedTypes) unique(new UniqueThisType (sym))
1397- else if (sym.isImplClass) sym.typeOfThis
1398- else sym.tpe
1399- }
1395+ def apply (sym : Symbol ): Type =
1396+ if (phase.erasedTypes) sym.tpe
1397+ else unique(new UniqueThisType (sym))
14001398 }
14011399
14021400 /** A class for singleton types of the form `<prefix>.<sym.name>.type`.
You can’t perform that action at this time.
0 commit comments