Revert "Try to fix the type rewriter."

This reverts commit 33b19f0210.
This commit is contained in:
Roberto Raggi
2010-07-20 14:23:46 +02:00
parent 99e862cfc9
commit c9bc1e7c64
4 changed files with 61 additions and 122 deletions

View File

@@ -568,10 +568,9 @@ QList<LookupItem> ResolveExpression::getMembers(ClassOrNamespace *binding, const
}
SubstitutionEnvironment env;
if (m.scope())
env.switchScope(m.scope());
env.setContext(_context);
ContextSubstitution ctxSubst(_context, m.scope());
env.enter(&ctxSubst);
env.enter(&map);
FullySpecifiedType instantiatedTy = rewriteType(decl->type(), &env, _context.control().data());