aboutsummaryrefslogtreecommitdiff
path: root/compiler/src/dotty/tools/dotc/transform
diff options
context:
space:
mode:
authorodersky <odersky@gmail.com>2017-02-02 13:48:42 +1100
committerGitHub <noreply@github.com>2017-02-02 13:48:42 +1100
commit64332a794c05cbf21491eaf0bfdf4482a80b1b10 (patch)
treef10436277073603ddacb3506e8ffcc039a84c54e /compiler/src/dotty/tools/dotc/transform
parentcca5dd9bd0c8f0d2e5679c81f2c40247a45d7a02 (diff)
parentd64d0a04402a397470081d6a777ecd3cd92e8c43 (diff)
downloaddotty-64332a794c05cbf21491eaf0bfdf4482a80b1b10.tar.gz
dotty-64332a794c05cbf21491eaf0bfdf4482a80b1b10.tar.bz2
dotty-64332a794c05cbf21491eaf0bfdf4482a80b1b10.zip
Merge pull request #1922 from dotty-staging/fix-#1723
Fix-#1723: Avoid private leaks on completion
Diffstat (limited to 'compiler/src/dotty/tools/dotc/transform')
-rw-r--r--compiler/src/dotty/tools/dotc/transform/PostTyper.scala6
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 = {