summaryrefslogtreecommitdiff
path: root/src/compiler/scala/tools/nsc/typechecker/TypeDiagnostics.scala
diff options
context:
space:
mode:
authorPaul Phillips <paulp@improving.org>2012-11-30 16:23:11 +0100
committerPaul Phillips <paulp@improving.org>2012-12-01 09:31:13 +0100
commit47245f547f55df1feff9add1e8cd73edd8d0b154 (patch)
tree0bad23966dfaa8a7258b2d73a40a3a78658dc0ec /src/compiler/scala/tools/nsc/typechecker/TypeDiagnostics.scala
parent08e717eaee731456a51adb08f72aa5d9f083a29a (diff)
downloadscala-47245f547f55df1feff9add1e8cd73edd8d0b154.tar.gz
scala-47245f547f55df1feff9add1e8cd73edd8d0b154.tar.bz2
scala-47245f547f55df1feff9add1e8cd73edd8d0b154.zip
Remove Name -> TermName implicit.
And simplify the name implicits.
Diffstat (limited to 'src/compiler/scala/tools/nsc/typechecker/TypeDiagnostics.scala')
-rw-r--r--src/compiler/scala/tools/nsc/typechecker/TypeDiagnostics.scala2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/compiler/scala/tools/nsc/typechecker/TypeDiagnostics.scala b/src/compiler/scala/tools/nsc/typechecker/TypeDiagnostics.scala
index 19f0b56e94..3bb6ae53dc 100644
--- a/src/compiler/scala/tools/nsc/typechecker/TypeDiagnostics.scala
+++ b/src/compiler/scala/tools/nsc/typechecker/TypeDiagnostics.scala
@@ -480,7 +480,7 @@ trait TypeDiagnostics {
&& (m.isPrivate || m.isLocal)
&& !targets(m)
&& !(m.name == nme.WILDCARD) // e.g. val _ = foo
- && !ignoreNames(m.name) // serialization methods
+ && !ignoreNames(m.name.toTermName) // serialization methods
&& !isConstantType(m.info.resultType) // subject to constant inlining
&& !treeTypes.exists(_ contains m) // e.g. val a = new Foo ; new a.Bar
)