diff options
author | Martin Odersky <odersky@gmail.com> | 2015-05-01 15:06:35 +0200 |
---|---|---|
committer | Martin Odersky <odersky@gmail.com> | 2015-05-01 17:22:20 +0200 |
commit | 661068a331eaba1737b4b27e87a09d12e8595045 (patch) | |
tree | 20b8be6178302e145c2071a8ce616424dd68a604 /src/dotty/tools/dotc/core/SymDenotations.scala | |
parent | 275c340b609ae113c93d8c004a2d8bd7be1b12c1 (diff) | |
download | dotty-661068a331eaba1737b4b27e87a09d12e8595045.tar.gz dotty-661068a331eaba1737b4b27e87a09d12e8595045.tar.bz2 dotty-661068a331eaba1737b4b27e87a09d12e8595045.zip |
Drop reference to NotJavaPrivate in access checks.
Verified that all tests still run. This is a first step, so that
we can later on eliminate NotJavaPrivate altogether.
Diffstat (limited to 'src/dotty/tools/dotc/core/SymDenotations.scala')
-rw-r--r-- | src/dotty/tools/dotc/core/SymDenotations.scala | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/dotty/tools/dotc/core/SymDenotations.scala b/src/dotty/tools/dotc/core/SymDenotations.scala index bcd46810e..31f6745ef 100644 --- a/src/dotty/tools/dotc/core/SymDenotations.scala +++ b/src/dotty/tools/dotc/core/SymDenotations.scala @@ -958,7 +958,7 @@ object SymDenotations { */ final def accessBoundary(base: Symbol)(implicit ctx: Context): Symbol = { val fs = flags - if (fs is (Private, butNot = NotJavaPrivate)) owner + if (fs is Private) owner else if (fs is StaticProtected) defn.RootClass else if (privateWithin.exists && !ctx.phase.erasedTypes) privateWithin else if (fs is Protected) base |