Fix SMT Checker crash due to missing type information

This commit is contained in:
Mathias Baumann
2019-02-28 11:55:45 +01:00
parent f9d1c283b7
commit f782125463
3 changed files with 8 additions and 0 deletions
+3
View File
@@ -448,6 +448,9 @@ bool TypeChecker::visit(VariableDeclaration const& _variable)
)
m_errorReporter.typeError(_variable.location(), "Variables cannot be declared in interfaces.");
if (_variable.typeName())
_variable.typeName()->accept(*this);
// type is filled either by ReferencesResolver directly from the type name or by
// TypeChecker at the VariableDeclarationStatement level.
TypePointer varType = _variable.annotation().type;