diff options
author | Martin Odersky <odersky@gmail.com> | 2010-04-12 11:53:05 +0000 |
---|---|---|
committer | Martin Odersky <odersky@gmail.com> | 2010-04-12 11:53:05 +0000 |
commit | 81c7ff7ef7243da2689064fe502c4b5e58108b22 (patch) | |
tree | 330ea3b47c9126d2c8a311226f1316cf8d428162 | |
parent | cfe47e4b74cc166af31cc130b0830112c46bdc61 (diff) | |
download | scala-81c7ff7ef7243da2689064fe502c4b5e58108b22.tar.gz scala-81c7ff7ef7243da2689064fe502c4b5e58108b22.tar.bz2 scala-81c7ff7ef7243da2689064fe502c4b5e58108b22.zip |
Cosmetic renamings. No review.
-rw-r--r-- | src/compiler/scala/tools/nsc/typechecker/Unapplies.scala | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/compiler/scala/tools/nsc/typechecker/Unapplies.scala b/src/compiler/scala/tools/nsc/typechecker/Unapplies.scala index a60721f0ca..5ba52f5f06 100644 --- a/src/compiler/scala/tools/nsc/typechecker/Unapplies.scala +++ b/src/compiler/scala/tools/nsc/typechecker/Unapplies.scala @@ -134,9 +134,9 @@ trait Unapplies extends ast.TreeDSL /** The module corresponding to a case class; without any member definitions */ def caseModuleDef(cdef: ClassDef): ModuleDef = { - def inheritFromFun1 = !(cdef.mods hasFlag ABSTRACT) && cdef.tparams.isEmpty && constrParamss(cdef).length == 1 - def createFun1 = gen.scalaFunctionConstr(constrParamss(cdef).head map (_.tpt), toIdent(cdef)) - def parents = if (inheritFromFun1) List(createFun1) else Nil + def inheritFromFun = !(cdef.mods hasFlag ABSTRACT) && cdef.tparams.isEmpty && constrParamss(cdef).length == 1 + def createFun = gen.scalaFunctionConstr(constrParamss(cdef).head map (_.tpt), toIdent(cdef)) + def parents = if (inheritFromFun) List(createFun) else Nil companionModuleDef(cdef, parents ::: List(gen.scalaScalaObjectConstr)) } |