diff options
author | Aleksandar Prokopec <axel22@gmail.com> | 2012-05-18 16:22:55 +0200 |
---|---|---|
committer | Aleksandar Prokopec <axel22@gmail.com> | 2012-05-18 16:22:55 +0200 |
commit | f5c1fb91a2b352dde8c55ed9db7981a5945bbd13 (patch) | |
tree | 17354b2eedb8fc6b851ea211f30cb9f9ef126095 | |
parent | c1aad0e60448257f818b47ce64b5b0e82052a77e (diff) | |
download | scala-f5c1fb91a2b352dde8c55ed9db7981a5945bbd13.tar.gz scala-f5c1fb91a2b352dde8c55ed9db7981a5945bbd13.tar.bz2 scala-f5c1fb91a2b352dde8c55ed9db7981a5945bbd13.zip |
Fixes previous commit.
Should be checking if the owner of the new symbol is a class, not the new symbol itself.
-rw-r--r-- | src/compiler/scala/tools/nsc/typechecker/Duplicators.scala | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/compiler/scala/tools/nsc/typechecker/Duplicators.scala b/src/compiler/scala/tools/nsc/typechecker/Duplicators.scala index e82a450972..b7a6ea677e 100644 --- a/src/compiler/scala/tools/nsc/typechecker/Duplicators.scala +++ b/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 |