diff options
author | Adriaan Moors <adriaan.moors@epfl.ch> | 2011-03-22 15:43:28 +0000 |
---|---|---|
committer | Adriaan Moors <adriaan.moors@epfl.ch> | 2011-03-22 15:43:28 +0000 |
commit | 8cbc17e8f18910fe5f06aea18feeb04593bbeed2 (patch) | |
tree | d16f0a30b1f708249add572b0c5720170c9eb7c6 /src/compiler | |
parent | ad8efdf707109e357e7d5cbd241661d813921f6b (diff) | |
download | scala-8cbc17e8f18910fe5f06aea18feeb04593bbeed2.tar.gz scala-8cbc17e8f18910fe5f06aea18feeb04593bbeed2.tar.bz2 scala-8cbc17e8f18910fe5f06aea18feeb04593bbeed2.zip |
closes #4345.
Diffstat (limited to 'src/compiler')
-rw-r--r-- | src/compiler/scala/tools/nsc/typechecker/RefChecks.scala | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/compiler/scala/tools/nsc/typechecker/RefChecks.scala b/src/compiler/scala/tools/nsc/typechecker/RefChecks.scala index 3d769f6cfd..63542e6dd5 100644 --- a/src/compiler/scala/tools/nsc/typechecker/RefChecks.scala +++ b/src/compiler/scala/tools/nsc/typechecker/RefChecks.scala @@ -688,7 +688,7 @@ abstract class RefChecks extends InfoTransform { !(tvar.isTypeParameterOrSkolem && sym.isTypeParameterOrSkolem && tvar.owner == sym.owner)) state = -state; else if (!sym.owner.isClass || - sym.isTerm && ((sym.isPrivateLocal || sym.isProtectedLocal) && !(escapedPrivateLocals contains sym))) { + sym.isTerm && ((sym.isPrivateLocal || sym.isProtectedLocal || sym.isSuperAccessor /* super accessors are implicitly local #4345*/) && !(escapedPrivateLocals contains sym))) { // return AnyVariance if `sym` is local to a term // or is private[this] or protected[this] state = AnyVariance |