diff options
author | Lukas Rytz <lukas.rytz@typesafe.com> | 2016-05-30 11:47:32 +0200 |
---|---|---|
committer | Lukas Rytz <lukas.rytz@typesafe.com> | 2016-05-30 11:47:32 +0200 |
commit | 7d5a0b326deb5fd6efbbe0d8b1f32894589a3118 (patch) | |
tree | e96bce5a4d4015b038b844091274bf44ea32c4a8 /src | |
parent | 6265eb83e057c5284a7859893d0fd3120284c3bf (diff) | |
parent | fd6386a51e9a5b97a83198a310923cd012e1aab0 (diff) | |
download | scala-7d5a0b326deb5fd6efbbe0d8b1f32894589a3118.tar.gz scala-7d5a0b326deb5fd6efbbe0d8b1f32894589a3118.tar.bz2 scala-7d5a0b326deb5fd6efbbe0d8b1f32894589a3118.zip |
Merge pull request #5193 from som-snytt/issue/9794
SI-9794 Error advice uses decoded method name
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. |