diff options
author | Grzegorz Kossakowski <grzegorz.kossakowski@gmail.com> | 2014-09-02 11:55:33 +0200 |
---|---|---|
committer | Grzegorz Kossakowski <grzegorz.kossakowski@gmail.com> | 2014-09-02 11:55:33 +0200 |
commit | c66b88636149e950983d302cc035fc40d5ed14bf (patch) | |
tree | febb1b83016dd2646965ea7116f11f1d81a5ac0e /src/compiler | |
parent | fc21e3b3bef59e17b3c9aa800d9288752f41853f (diff) | |
parent | 997ef56058d8c44d2b9c5f561edf2aa65221c150 (diff) | |
download | scala-c66b88636149e950983d302cc035fc40d5ed14bf.tar.gz scala-c66b88636149e950983d302cc035fc40d5ed14bf.tar.bz2 scala-c66b88636149e950983d302cc035fc40d5ed14bf.zip |
Merge pull request #3952 from gourlaysama/wip/t8828-lint-innacessible
SI-8828 fix regression in Xlint visibility warning for sealed classes
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 47465875e9..1cb775959d 100644 --- a/src/compiler/scala/tools/nsc/typechecker/RefChecks.scala +++ b/src/compiler/scala/tools/nsc/typechecker/RefChecks.scala @@ -1633,7 +1633,7 @@ abstract class RefChecks extends InfoTransform with scala.reflect.internal.trans if (settings.warnNullaryUnit) checkNullaryMethodReturnType(sym) if (settings.warnInaccessible) { - if (!sym.isConstructor && !sym.isEffectivelyFinal && !sym.isSynthetic) + if (!sym.isConstructor && !sym.isEffectivelyFinalOrNotOverridden && !sym.isSynthetic) checkAccessibilityOfReferencedTypes(tree) } tree match { |