Refined fix for #2946. Review by extempore.

git-svn-id: http://lampsvn.epfl.ch/svn-repos/scala/scala/trunk@21107 5e8d7ff9-d8ef-0310-90f0-a4852d11357a
This commit is contained in:
odersky 2010-03-08 18:12:11 +00:00
parent 6f8e26e780
commit 89ff598e01
1 changed files with 1 additions and 1 deletions

View File

@ -156,7 +156,7 @@ abstract class ExplicitOuter extends InfoTransform
// On the other hand, mixing in the trait into a separately compiled
// class needs to have a common naming scheme, independently of whether
// the field was accessed from an inner class or not. See #2946
if (sym.owner.isTrait && (sym hasFlag LOCAL))
if (sym.owner.isTrait && (sym hasFlag LOCAL) && (sym.getter(sym.owner) == NoSymbol))
sym.makeNotPrivate(sym.owner)
tp
}