diff options
author | Som Snytt <som.snytt@gmail.com> | 2016-05-26 21:53:19 -0700 |
---|---|---|
committer | Som Snytt <som.snytt@gmail.com> | 2016-05-26 21:53:19 -0700 |
commit | fd6386a51e9a5b97a83198a310923cd012e1aab0 (patch) | |
tree | b91f5fdc9fdf65c39aae7cdec3424bc2e44fe5af /src | |
parent | edbf2c42d933ed59e4f5f41c26bfcc8f18915caf (diff) | |
download | scala-fd6386a51e9a5b97a83198a310923cd012e1aab0.tar.gz scala-fd6386a51e9a5b97a83198a310923cd012e1aab0.tar.bz2 scala-fd6386a51e9a5b97a83198a310923cd012e1aab0.zip |
SI-9794 Error advice uses decoded method name
So much work went into polishing this error message,
it's worth buffing the method name when it's an operator.
The message now says `+` instead of `$plus`.
Diffstat (limited to 'src')
-rw-r--r-- | src/compiler/scala/tools/nsc/typechecker/ContextErrors.scala | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/compiler/scala/tools/nsc/typechecker/ContextErrors.scala b/src/compiler/scala/tools/nsc/typechecker/ContextErrors.scala index 90ccaefe43..d519948a11 100644 --- a/src/compiler/scala/tools/nsc/typechecker/ContextErrors.scala +++ b/src/compiler/scala/tools/nsc/typechecker/ContextErrors.scala @@ -632,7 +632,7 @@ trait ContextErrors { //adapt def MissingArgsForMethodTpeError(tree: Tree, meth: Symbol) = { - val f = meth.name + val f = meth.name.decoded val paf = s"$f(${ meth.asMethod.paramLists map (_ map (_ => "_") mkString ",") mkString ")(" })" val advice = s""" |Unapplied methods are only converted to functions when a function type is expected. |