Commit 43753aac authored by Sven Brauch's avatar Sven Brauch
Browse files

Don't add invalid or null types to tuples, but use mixed instead.

This should finally fix
BUG:304993
parent 1fed938f
......@@ -579,7 +579,12 @@ void ExpressionVisitor::visitTuple(TupleAst* node) {
foreach ( ExpressionAst* expr, node->elements ) {
ExpressionVisitor v(this);
v.visitNode(expr);
type->addEntry(v.lastType());
if ( v.lastType() ) {
type->addEntry(v.lastType());
}
else {
type->addEntry(AbstractType::Ptr(new IntegralType(IntegralType::TypeMixed)));
}
}
encounter(type.cast<AbstractType>(), AutomaticallyDetermineDeclaration);
}
......
Supports Markdown
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