diff options
author | Jason Zaugg <jzaugg@gmail.com> | 2013-09-22 10:32:43 +0200 |
---|---|---|
committer | Jason Zaugg <jzaugg@gmail.com> | 2013-09-22 10:32:43 +0200 |
commit | 3d7f84e83b85f26f1ae84acdd7edcfddeefc6322 (patch) | |
tree | 8e0f9abc5c381ba6bfe34a785c0c8aab0303fe0a /src/compiler | |
parent | 65817bd2b71f5ea0e39af1b1c2b085562cd8e925 (diff) | |
download | scala-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')
-rw-r--r-- | src/compiler/scala/tools/nsc/typechecker/Typers.scala | 2 |
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 { |