Try to fix the type rewriter.

This commit is contained in:
Roberto Raggi
2010-07-19 20:12:16 +02:00
parent 55936532c2
commit 33b19f0210
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());