summaryrefslogtreecommitdiff
path: root/src/compiler/scala/tools/nsc/typechecker/Namers.scala
diff options
context:
space:
mode:
authorAdriaan Moors <adriaan.moors@epfl.ch>2010-08-20 10:01:09 +0000
committerAdriaan Moors <adriaan.moors@epfl.ch>2010-08-20 10:01:09 +0000
commit40f8f773393f75ccf7134fb6e5610d16048b9df0 (patch)
tree6b5e65d1a4fa58ad5f9348e63655a1ce6e2f3385 /src/compiler/scala/tools/nsc/typechecker/Namers.scala
parentd8fed0f583c05a109c0c0b2bd53687ee8ee1e153 (diff)
downloadscala-40f8f773393f75ccf7134fb6e5610d16048b9df0.tar.gz
scala-40f8f773393f75ccf7134fb6e5610d16048b9df0.tar.bz2
scala-40f8f773393f75ccf7134fb6e5610d16048b9df0.zip
closes #3575.
cloneSymbol now preserves privateWithin -- need to reset it explicitly now when before it was assumed to be not to be carried over rewrote accessibility in overriding checks so they're more readable, but hopefully with same semantics review by odersky
Diffstat (limited to 'src/compiler/scala/tools/nsc/typechecker/Namers.scala')
-rw-r--r--src/compiler/scala/tools/nsc/typechecker/Namers.scala2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/compiler/scala/tools/nsc/typechecker/Namers.scala b/src/compiler/scala/tools/nsc/typechecker/Namers.scala
index 91d7b1d12c..cd5de7cb7b 100644
--- a/src/compiler/scala/tools/nsc/typechecker/Namers.scala
+++ b/src/compiler/scala/tools/nsc/typechecker/Namers.scala
@@ -375,7 +375,7 @@ trait Namers { self: Analyzer =>
context.unit.isJava) &&
!mods.isLazy) {
val vsym = owner.newValue(tree.pos, name).setFlag(mods.flags);
- if(context.unit.isJava) setPrivateWithin(tree, vsym, mods) // #3663
+ if(context.unit.isJava) setPrivateWithin(tree, vsym, mods) // #3663 -- for Scala fields we assume private[this]
tree.symbol = enterInScope(vsym)
finish
} else {