diff options
author | Som Snytt <som.snytt@gmail.com> | 2014-07-01 08:21:07 -0700 |
---|---|---|
committer | Som Snytt <som.snytt@gmail.com> | 2014-07-10 09:27:51 -0700 |
commit | 3b89c168b4926139f7295183fdc1903f6f553798 (patch) | |
tree | 640f0672a1deadf6d3b7e57383be6432165a551f /src/compiler/scala/tools/nsc/typechecker/SuperAccessors.scala | |
parent | 44855dcd3c2e19d5dbaf01b2165ea8dc9fb287d3 (diff) | |
download | scala-3b89c168b4926139f7295183fdc1903f6f553798.tar.gz scala-3b89c168b4926139f7295183fdc1903f6f553798.tar.bz2 scala-3b89c168b4926139f7295183fdc1903f6f553798.zip |
SI-8525 No anonymous lint
Turn anonymous references to `settings.lint` into named settings.
After that, trust to Adriaan to make them filterable.
There are a few remaining top-level -Y lint warnings that are
deprecated.
Diffstat (limited to 'src/compiler/scala/tools/nsc/typechecker/SuperAccessors.scala')
-rw-r--r-- | src/compiler/scala/tools/nsc/typechecker/SuperAccessors.scala | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/compiler/scala/tools/nsc/typechecker/SuperAccessors.scala b/src/compiler/scala/tools/nsc/typechecker/SuperAccessors.scala index d3a41b9570..38b00a015b 100644 --- a/src/compiler/scala/tools/nsc/typechecker/SuperAccessors.scala +++ b/src/compiler/scala/tools/nsc/typechecker/SuperAccessors.scala @@ -247,7 +247,7 @@ abstract class SuperAccessors extends transform.Transform with transform.TypingT // also exists in a superclass, because they may be surprised // to find out that a constructor parameter will shadow a // field. See SI-4762. - if (settings.lint) { + if (settings.warnPrivateShadow) { if (sym.isPrivateLocal && sym.paramss.isEmpty) { qual.symbol.ancestors foreach { parent => parent.info.decls filterNot (x => x.isPrivate || x.isLocalToThis) foreach { m2 => |