diff options
author | Simon Ochsenreither <simon@ochsenreither.de> | 2014-10-15 22:09:16 +0200 |
---|---|---|
committer | Simon Ochsenreither <simon@ochsenreither.de> | 2014-10-24 10:13:46 +0200 |
commit | da9bedce4c42e14f9d6f4ff38fe3a38432fd9e12 (patch) | |
tree | 4c2e49e588fdcb620b2b01f7c60449ad80b133f8 /src/compiler/scala/tools/nsc/typechecker/TypeDiagnostics.scala | |
parent | f08e96571479552b103b15cc2d40ea5454999546 (diff) | |
download | scala-da9bedce4c42e14f9d6f4ff38fe3a38432fd9e12.tar.gz scala-da9bedce4c42e14f9d6f4ff38fe3a38432fd9e12.tar.bz2 scala-da9bedce4c42e14f9d6f4ff38fe3a38432fd9e12.zip |
SI-8916 Further fixes with -Ywarn-unused included
Diffstat (limited to 'src/compiler/scala/tools/nsc/typechecker/TypeDiagnostics.scala')
-rw-r--r-- | src/compiler/scala/tools/nsc/typechecker/TypeDiagnostics.scala | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/compiler/scala/tools/nsc/typechecker/TypeDiagnostics.scala b/src/compiler/scala/tools/nsc/typechecker/TypeDiagnostics.scala index 1dac27639c..0f90c6a478 100644 --- a/src/compiler/scala/tools/nsc/typechecker/TypeDiagnostics.scala +++ b/src/compiler/scala/tools/nsc/typechecker/TypeDiagnostics.scala @@ -607,7 +607,7 @@ trait TypeDiagnostics { if (!c.owner.exists || c.owner.isClass || c.owner.isMethod || (c.owner.isType && !c.owner.isParameter)) c else enclClassOrMethodOrTypeMember(c.outer) - val tt = tparams.filter(_.name != typeNames.WILDCARD).foreach { tp => + tparams.filter(_.name != typeNames.WILDCARD).foreach { tp => // we don't care about type params shadowing other type params in the same declaration enclClassOrMethodOrTypeMember(context).outer.lookupSymbol(tp.name, s => s != tp.symbol && s.hasRawInfo && reallyExists(s)) match { case LookupSucceeded(_, sym2) => context.warning(tp.pos, |