diff options
author | Paul Phillips <paulp@improving.org> | 2009-08-22 18:48:25 +0000 |
---|---|---|
committer | Paul Phillips <paulp@improving.org> | 2009-08-22 18:48:25 +0000 |
commit | 22608da738a56936d185d71e447b0fd274a8f454 (patch) | |
tree | f4a7150918d31f0b162eae932954ff4bed7fba86 /src/compiler/scala/tools/nsc/typechecker/Namers.scala | |
parent | 72a7124873ad8227cc4185b95012f7a83da30a5d (diff) | |
download | scala-22608da738a56936d185d71e447b0fd274a8f454.tar.gz scala-22608da738a56936d185d71e447b0fd274a8f454.tar.bz2 scala-22608da738a56936d185d71e447b0fd274a8f454.zip |
Deprecation patrol.
Diffstat (limited to 'src/compiler/scala/tools/nsc/typechecker/Namers.scala')
-rw-r--r-- | src/compiler/scala/tools/nsc/typechecker/Namers.scala | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/compiler/scala/tools/nsc/typechecker/Namers.scala b/src/compiler/scala/tools/nsc/typechecker/Namers.scala index 8c2c076a08..8f91c823aa 100644 --- a/src/compiler/scala/tools/nsc/typechecker/Namers.scala +++ b/src/compiler/scala/tools/nsc/typechecker/Namers.scala @@ -34,7 +34,7 @@ trait Namers { self: Analyzer => case PolyType(tparams1, restpe) => new DeSkolemizeMap(tparams1 ::: tparams).mapOver(tp) case ClassInfoType(parents, decls, clazz) => - val parents1 = List.mapConserve(parents)(this) + val parents1 = parents mapConserve (this) if (parents1 eq parents) tp else ClassInfoType(parents1, decls, clazz) */ case _ => @@ -715,7 +715,7 @@ trait Namers { self: Analyzer => Namers.this.caseClassOfModuleClass get clazz.linkedModuleOfClass.moduleClass match { case Some(cdef) => def hasCopy(decls: Scope) = { - decls.elements exists (_.name == nme.copy) + decls.iterator exists (_.name == nme.copy) } if (!hasCopy(decls) && !parents.exists(p => hasCopy(p.typeSymbol.info.decls)) && |