Permalink
Browse files

Further fixes SI-4717.

Only adding a lazy val into list of declarations if the owner is a class.

Review by dragos.
@mention dragos
  • Loading branch information...
axel22 committed May 18, 2012
1 parent 2aa685b commit c1aad0e60448257f818b47ce64b5b0e82052a77e
Showing with 2 additions and 2 deletions.
  1. +2 −2 src/compiler/scala/tools/nsc/typechecker/Duplicators.scala
@@ -166,8 +166,8 @@ abstract class Duplicators extends Analyzer {
val newsym = vdef.symbol.cloneSymbol(newowner)
newsym.setInfo(fixType(vdef.symbol.info))
vdef.symbol = newsym
newsym.owner.info.decls enter newsym
debuglog("newsym: " + newsym + " info: " + newsym.info)
debuglog("newsym: " + newsym + " info: " + newsym.info + ", owner: " + newsym.owner)
if (newsym.isClass) newsym.owner.info.decls enter newsym
case DefDef(_, name, tparams, vparamss, _, rhs) =>
// invalidate parameters

0 comments on commit c1aad0e

Please sign in to comment.