Commit ca306e1e authored by Roberto Raggi's avatar Roberto Raggi
Browse files

Keep the lookup context alive.

parent b67c1a78
......@@ -96,7 +96,12 @@ QList<LookupItem> TypeOfExpression::operator()(ExpressionAST *expression,
m_lookupContext.setBindings(m_bindings);
ResolveExpression resolve(m_lookupContext);
return resolve(m_ast, scope);
const QList<LookupItem> items = resolve(m_ast, scope);
if (! m_bindings)
m_lookupContext = resolve.context();
return items;
}
QString TypeOfExpression::preprocess(const QString &expression) const
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment