summaryrefslogtreecommitdiff
path: root/src/compiler/scala/tools/nsc/transform/CleanUp.scala
diff options
context:
space:
mode:
authorPaul Phillips <paulp@improving.org>2012-12-01 12:38:10 +0100
committerPaul Phillips <paulp@improving.org>2012-12-02 13:39:05 -0800
commitde6649439e39c1f656644ac090fc49a7a8f02340 (patch)
tree25639987d8bf130ee570269fc50f285240ccecf6 /src/compiler/scala/tools/nsc/transform/CleanUp.scala
parent47245f547f55df1feff9add1e8cd73edd8d0b154 (diff)
downloadscala-de6649439e39c1f656644ac090fc49a7a8f02340.tar.gz
scala-de6649439e39c1f656644ac090fc49a7a8f02340.tar.bz2
scala-de6649439e39c1f656644ac090fc49a7a8f02340.zip
Remove TermName -> String implicit.
These implicits were crutches going back to a much Stringier time. Of course "with great type safety comes great verbosity" and no doubt this could be cleaned up significantly further. At least the underpinnings are consistent now - the only implicits involving name should be String -> TypeName and String -> TermName.
Diffstat (limited to 'src/compiler/scala/tools/nsc/transform/CleanUp.scala')
-rw-r--r--src/compiler/scala/tools/nsc/transform/CleanUp.scala2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/compiler/scala/tools/nsc/transform/CleanUp.scala b/src/compiler/scala/tools/nsc/transform/CleanUp.scala
index 847ca574a9..3af9c6d74d 100644
--- a/src/compiler/scala/tools/nsc/transform/CleanUp.scala
+++ b/src/compiler/scala/tools/nsc/transform/CleanUp.scala
@@ -120,7 +120,7 @@ abstract class CleanUp extends Transform with ast.TreeDSL {
}
def addStaticMethodToClass(forBody: (Symbol, Symbol) => Tree): Symbol = {
- val methSym = currentClass.newMethod(mkTerm(nme.reflMethodName), ad.pos, STATIC | SYNTHETIC)
+ val methSym = currentClass.newMethod(mkTerm(nme.reflMethodName.toString), ad.pos, STATIC | SYNTHETIC)
val params = methSym.newSyntheticValueParams(List(ClassClass.tpe))
methSym setInfoAndEnter MethodType(params, MethodClass.tpe)