summaryrefslogtreecommitdiff
path: root/src/compiler/scala/tools/nsc/typechecker/Namers.scala
diff options
context:
space:
mode:
authorMartin Odersky <odersky@gmail.com>2011-03-14 11:43:13 +0000
committerMartin Odersky <odersky@gmail.com>2011-03-14 11:43:13 +0000
commit13c59adf9fbff0e99ffa9f8e30f5dc05e0c1ee4d (patch)
tree17de4b40b057cf9ac6cc11e42a652a711928e9ae /src/compiler/scala/tools/nsc/typechecker/Namers.scala
parent1f3c58a818feb7c2887ceebb079ce992aa677c0d (diff)
downloadscala-13c59adf9fbff0e99ffa9f8e30f5dc05e0c1ee4d.tar.gz
scala-13c59adf9fbff0e99ffa9f8e30f5dc05e0c1ee4d.tar.bz2
scala-13c59adf9fbff0e99ffa9f8e30f5dc05e0c1ee4d.zip
Changed Super to fix #4300
Diffstat (limited to 'src/compiler/scala/tools/nsc/typechecker/Namers.scala')
-rw-r--r--src/compiler/scala/tools/nsc/typechecker/Namers.scala2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/compiler/scala/tools/nsc/typechecker/Namers.scala b/src/compiler/scala/tools/nsc/typechecker/Namers.scala
index b578759c85..cd845ab9e5 100644
--- a/src/compiler/scala/tools/nsc/typechecker/Namers.scala
+++ b/src/compiler/scala/tools/nsc/typechecker/Namers.scala
@@ -757,7 +757,7 @@ trait Namers { self: Analyzer =>
// add apply and unapply methods to companion objects of case classes,
// unless they exist already; here, "clazz" is the module class
if (clazz.isModuleClass) {
- Namers.this.caseClassOfModuleClass get clazz map { cdefRef =>
+ Namers.this.caseClassOfModuleClass get clazz foreach { cdefRef =>
val cdef = cdefRef()
addApplyUnapply(cdef, templateNamer)
caseClassOfModuleClass -= clazz