Sorry this was not supposed to be committed.

Revert "Revert "Try to fix the type rewriter.""

This reverts commit c9bc1e7c64.
This commit is contained in:
Roberto Raggi
2010-07-20 15:04:50 +02:00
parent 3b48da9391
commit f895cbb472
4 changed files with 122 additions and 61 deletions

View File

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