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:
parent
6f8e26e780
commit
89ff598e01
|
@ -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
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue