summaryrefslogtreecommitdiff
path: root/src/compiler/scala/tools/nsc/typechecker/Typers.scala
diff options
context:
space:
mode:
authorSom Snytt <som.snytt@gmail.com>2016-03-20 19:35:41 -0700
committerSom Snytt <som.snytt@gmail.com>2016-03-20 19:35:41 -0700
commit416326ebeaffef29cda3522ea828950e45cedcc0 (patch)
treedd2fc9261b3d1893c4ba2409808f805b5763802c /src/compiler/scala/tools/nsc/typechecker/Typers.scala
parent99a82be91cbb85239f70508f6695c6b21fd3558c (diff)
downloadscala-416326ebeaffef29cda3522ea828950e45cedcc0.tar.gz
scala-416326ebeaffef29cda3522ea828950e45cedcc0.tar.bz2
scala-416326ebeaffef29cda3522ea828950e45cedcc0.zip
SI-9314 Don't warn on "$pkg"
Edge cases of things not to warn about include package names.
Diffstat (limited to 'src/compiler/scala/tools/nsc/typechecker/Typers.scala')
-rw-r--r--src/compiler/scala/tools/nsc/typechecker/Typers.scala2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/compiler/scala/tools/nsc/typechecker/Typers.scala b/src/compiler/scala/tools/nsc/typechecker/Typers.scala
index 6676a0aeaf..3f0d0e655d 100644
--- a/src/compiler/scala/tools/nsc/typechecker/Typers.scala
+++ b/src/compiler/scala/tools/nsc/typechecker/Typers.scala
@@ -5206,7 +5206,7 @@ trait Typers extends Adaptations with Tags with TypersTracking with PatternTyper
case MethodType(p :: _, _) => p.isImplicit // implicit method requires no args
case _ => true // catches all others including NullaryMethodType
}
- def isPlausible(m: Symbol) = m.alternatives exists (m => requiresNoArgs(m.info))
+ def isPlausible(m: Symbol) = !m.isPackage && m.alternatives.exists(x => requiresNoArgs(x.info))
def maybeWarn(s: String): Unit = {
def warn(message: String) = context.warning(lit.pos, s"possible missing interpolator: $message")