Skip to content

Commit e67bfd3

Browse files
committed
Don't check for private leaks when unpickling from Scala2
1 parent a7c6ff7 commit e67bfd3

File tree

1 file changed

+0
-6
lines changed

1 file changed

+0
-6
lines changed

compiler/src/dotty/tools/dotc/core/unpickleScala2/Scala2Unpickler.scala

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -567,12 +567,6 @@ class Scala2Unpickler(bytes: Array[Byte], classRoot: ClassDenotation, moduleClas
567567
// we need the checkNonCyclic call to insert LazyRefs for F-bounded cycles
568568
else if (!denot.is(Param)) tp1.underlyingIfRepeated(isJava = false)
569569
else tp1
570-
571-
if (!denot.isType) { // Only terms might have leaky aliases, see the documentation of `checkNoPrivateLeaks`
572-
val sym = denot.symbol
573-
denot.info = ctx.typeAssigner.avoidPrivateLeaks(sym, sym.pos)
574-
}
575-
576570
if (denot.isConstructor) addConstructorTypeParams(denot)
577571
if (atEnd) {
578572
assert(!denot.isSuperAccessor, denot)

0 commit comments

Comments
 (0)