diff options
author | Martin Odersky <odersky@gmail.com> | 2017-02-01 21:30:23 +1100 |
---|---|---|
committer | Martin Odersky <odersky@gmail.com> | 2017-02-01 21:30:23 +1100 |
commit | c1a37e13befe5a57ff2452e3a3470b1e0d8adb54 (patch) | |
tree | 24547d53c9779c7a5ef8c2251bab6c7476a963bb /compiler/src/dotty/tools/dotc/transform | |
parent | d087448fdffff8f64a23d9db39445455cddc2fc6 (diff) | |
download | dotty-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/transform')
-rw-r--r-- | compiler/src/dotty/tools/dotc/transform/PostTyper.scala | 6 |
1 files changed, 0 insertions, 6 deletions
diff --git a/compiler/src/dotty/tools/dotc/transform/PostTyper.scala b/compiler/src/dotty/tools/dotc/transform/PostTyper.scala index e7c0df1b9..8dff58dea 100644 --- a/compiler/src/dotty/tools/dotc/transform/PostTyper.scala +++ b/compiler/src/dotty/tools/dotc/transform/PostTyper.scala @@ -107,12 +107,6 @@ class PostTyper extends MacroTransform with IdentityDenotTransformer { thisTran private def transformMemberDef(tree: MemberDef)(implicit ctx: Context): Unit = { val sym = tree.symbol sym.transformAnnotations(transformAnnot) - // Has to be redone in TreeUnpickler - if (!sym.is(SyntheticOrPrivate) && sym.owner.isClass) { - val info1 = Checking.checkNoPrivateLeaks(sym, tree.pos) - if (info1 ne sym.info) - sym.copySymDenotation(info = info1).installAfter(thisTransformer) - } } private def transformSelect(tree: Select, targs: List[Tree])(implicit ctx: Context): Tree = { |