Skip to content

Commit c8bdf19

Browse files
jrudolphpaulp
authored andcommitted
Revert "tentative fix for RC5 lift build problem."
This reverts commit cb4fd65. Conflicts: src/compiler/scala/tools/nsc/symtab/Types.scala src/compiler/scala/tools/nsc/typechecker/Contexts.scala
1 parent 097e569 commit c8bdf19

File tree

2 files changed

+3
-6
lines changed

2 files changed

+3
-6
lines changed

src/compiler/scala/tools/nsc/typechecker/Contexts.scala

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff 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
)

src/reflect/scala/reflect/internal/Types.scala

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff 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`.

0 commit comments

Comments
 (0)