aboutsummaryrefslogtreecommitdiff
path: root/compiler/src/dotty/tools/dotc/core/tasty
diff options
context:
space:
mode:
authorMartin Odersky <odersky@gmail.com>2017-02-01 21:30:23 +1100
committerMartin Odersky <odersky@gmail.com>2017-02-01 21:30:23 +1100
commitc1a37e13befe5a57ff2452e3a3470b1e0d8adb54 (patch)
tree24547d53c9779c7a5ef8c2251bab6c7476a963bb /compiler/src/dotty/tools/dotc/core/tasty
parentd087448fdffff8f64a23d9db39445455cddc2fc6 (diff)
downloaddotty-c1a37e13befe5a57ff2452e3a3470b1e0d8adb54.tar.gz
dotty-c1a37e13befe5a57ff2452e3a3470b1e0d8adb54.tar.bz2
dotty-c1a37e13befe5a57ff2452e3a3470b1e0d8adb54.zip
Fix-#1723: Avoid private leaks on completion
As #1723 demonstrates, doing this at PostTyper is too late.
Diffstat (limited to 'compiler/src/dotty/tools/dotc/core/tasty')
-rw-r--r--compiler/src/dotty/tools/dotc/core/tasty/TreeUnpickler.scala6
1 files changed, 1 insertions, 5 deletions
diff --git a/compiler/src/dotty/tools/dotc/core/tasty/TreeUnpickler.scala b/compiler/src/dotty/tools/dotc/core/tasty/TreeUnpickler.scala
index 51f08a295..dad433c4e 100644
--- a/compiler/src/dotty/tools/dotc/core/tasty/TreeUnpickler.scala
+++ b/compiler/src/dotty/tools/dotc/core/tasty/TreeUnpickler.scala
@@ -733,11 +733,7 @@ class TreeUnpickler(reader: TastyReader, tastyName: TastyName.Table, posUnpickle
// no longer necessary.
goto(end)
setPos(start, tree)
-
- // This is also done in PostTyper but needs to be redone here
- if (!sym.is(SyntheticOrPrivate) && sym.owner.isClass) {
- sym.info = Checking.checkNoPrivateLeaks(sym, tree.pos)
- }
+ Checking.avoidPrivateLeaks(sym, tree.pos)
tree
}