diff options
author | Paul Phillips <paulp@improving.org> | 2009-02-12 12:53:06 +0000 |
---|---|---|
committer | Paul Phillips <paulp@improving.org> | 2009-02-12 12:53:06 +0000 |
commit | 40f7264305dc7d82d131f8f4d3a38875a879952e (patch) | |
tree | 34f522c1ed8fa23c50fc3875080a299d3c4aea21 /src/compiler | |
parent | bee24f7b52be4130dcffb05e0bdbc9f3b7915033 (diff) | |
download | scala-40f7264305dc7d82d131f8f4d3a38875a879952e.tar.gz scala-40f7264305dc7d82d131f8f4d3a38875a879952e.tar.bz2 scala-40f7264305dc7d82d131f8f4d3a38875a879952e.zip |
widened access check for readResolve to include...
widened access check for readResolve to include all access modifiers;
fixes bug #1385
Diffstat (limited to 'src/compiler')
-rw-r--r-- | src/compiler/scala/tools/nsc/typechecker/SyntheticMethods.scala | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/compiler/scala/tools/nsc/typechecker/SyntheticMethods.scala b/src/compiler/scala/tools/nsc/typechecker/SyntheticMethods.scala index a2f72cf861..6ea1a2eb69 100644 --- a/src/compiler/scala/tools/nsc/typechecker/SyntheticMethods.scala +++ b/src/compiler/scala/tools/nsc/typechecker/SyntheticMethods.scala @@ -47,7 +47,7 @@ trait SyntheticMethods { self: Analyzer => val localTyper = newTyper(localContext) def hasImplementation(name: Name): Boolean = if (inIDE) true else { - val sym = clazz.info.nonPrivateMember(name) + val sym = clazz.info.member(name) // member and not nonPrivateMember: bug #1385 sym.isTerm && !(sym hasFlag DEFERRED) } |