summaryrefslogtreecommitdiff
path: root/src/compiler/scala/tools/nsc/typechecker/Typers.scala
diff options
context:
space:
mode:
authorSimon Ochsenreither <simon@ochsenreither.de>2014-11-29 04:05:10 +0100
committerSimon Ochsenreither <simon@ochsenreither.de>2015-03-26 03:15:07 +0100
commit86999ed76b5d9df51c337c5e33fe265e04d8f39c (patch)
treef09526ab3075b9c5e9552eb1e564984a64b7df28 /src/compiler/scala/tools/nsc/typechecker/Typers.scala
parente5bfc1c097e8dea9e0643e4a43743196209e9ba8 (diff)
downloadscala-86999ed76b5d9df51c337c5e33fe265e04d8f39c.tar.gz
scala-86999ed76b5d9df51c337c5e33fe265e04d8f39c.tar.bz2
scala-86999ed76b5d9df51c337c5e33fe265e04d8f39c.zip
new{Term,Type}Name→{Term,Type}Name, tpename/nme→{type,term}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 1afb45289f..46f2177035 100644
--- a/src/compiler/scala/tools/nsc/typechecker/Typers.scala
+++ b/src/compiler/scala/tools/nsc/typechecker/Typers.scala
@@ -5198,7 +5198,7 @@ trait Typers extends Adaptations with Tags with TypersTracking with PatternTyper
def warn(message: String) = context.warning(lit.pos, s"possible missing interpolator: $message")
def suspiciousSym(name: TermName) = context.lookupSymbol(name, _ => true).symbol
def suspiciousExpr = InterpolatorCodeRegex findFirstIn s
- def suspiciousIdents = InterpolatorIdentRegex findAllIn s map (s => suspiciousSym(s drop 1))
+ def suspiciousIdents = InterpolatorIdentRegex findAllIn s map (s => suspiciousSym(TermName(s drop 1)))
if (suspiciousExpr.nonEmpty)
warn("detected an interpolated expression") // "${...}"