From daeb8f75ec3db065703d225fdb7f0aca34514333 Mon Sep 17 00:00:00 2001 From: Paul Phillips Date: Mon, 9 Jan 2012 22:53:06 -0800 Subject: Restored an implicit. Because sbt's generated API code depends on it. --- src/compiler/scala/reflect/internal/StdNames.scala | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) (limited to 'src') diff --git a/src/compiler/scala/reflect/internal/StdNames.scala b/src/compiler/scala/reflect/internal/StdNames.scala index ea5565c581..7a59458e5c 100644 --- a/src/compiler/scala/reflect/internal/StdNames.scala +++ b/src/compiler/scala/reflect/internal/StdNames.scala @@ -13,10 +13,12 @@ import annotation.switch trait StdNames extends NameManglers { self: SymbolTable => def encode(str: String): TermName = newTermNameCached(NameTransformer.encode(str)) - - implicit def lowerTermNames(n: TermName): String = "" + n - // implicit def stringToTermName(s: String): TermName = newTermName(s) + // I would like to eventually lose these, or at least create + // some barriers to relying upon them. Maybe I need an annotation + // like @deprecated, but that doesn't @deprecated. @chastise. + implicit def lowerTermNames(n: TermName): String = "" + n + implicit def stringToTermName(s: String): TermName = newTermName(s) /** This should be the first trait in the linearization. */ trait Keywords { -- cgit v1.2.3