summaryrefslogtreecommitdiff
path: root/src/compiler/scala/tools/nsc/typechecker/Typers.scala
diff options
context:
space:
mode:
authorJason Zaugg <jzaugg@gmail.com>2013-09-22 10:32:43 +0200
committerJason Zaugg <jzaugg@gmail.com>2013-09-22 10:32:43 +0200
commit3d7f84e83b85f26f1ae84acdd7edcfddeefc6322 (patch)
tree8e0f9abc5c381ba6bfe34a785c0c8aab0303fe0a /src/compiler/scala/tools/nsc/typechecker/Typers.scala
parent65817bd2b71f5ea0e39af1b1c2b085562cd8e925 (diff)
downloadscala-3d7f84e83b85f26f1ae84acdd7edcfddeefc6322.tar.gz
scala-3d7f84e83b85f26f1ae84acdd7edcfddeefc6322.tar.bz2
scala-3d7f84e83b85f26f1ae84acdd7edcfddeefc6322.zip
SI-7864 Harden "looks like an interpolated String" warning
We can't rely on the qualifier of an `Apply` having a non-null symbol in general.
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 5c8f1bd1c7..e07c68de8a 100644
--- a/src/compiler/scala/tools/nsc/typechecker/Typers.scala
+++ b/src/compiler/scala/tools/nsc/typechecker/Typers.scala
@@ -4878,7 +4878,7 @@ trait Typers extends Adaptations with Tags with TypersTracking with PatternTyper
// Unfortunately implicit not found strings looks for all the world like
// missing interpolators.
def isArgToImplicitNotFound = context.enclosingApply.tree match {
- case Apply(fn, _) => fn.symbol.enclClass == ImplicitNotFoundClass
+ case Apply(fn, _) => fn.symbol != null && fn.symbol.enclClass == ImplicitNotFoundClass
case _ => false
}
tree.value match {