Permalink
Browse files

Fixes previous commit.

Should be checking if the owner of the new symbol is a class, not the new symbol itself.
  • Loading branch information...
axel22 committed May 18, 2012
1 parent c1aad0e commit f5c1fb91a2b352dde8c55ed9db7981a5945bbd13
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
- debuglog("newsym: " + newsym + " info: " + newsym.info + ", owner: " + newsym.owner)
- if (newsym.isClass) newsym.owner.info.decls enter newsym
+ debuglog("newsym: " + newsym + " info: " + newsym.info + ", owner: " + newsym.owner + ", " + newsym.owner.isClass)
+ if (newsym.owner.isClass) newsym.owner.info.decls enter newsym
case DefDef(_, name, tparams, vparamss, _, rhs) =>
// invalidate parameters

0 comments on commit f5c1fb9

Please sign in to comment.