Commit 4b867291 authored by Victor Yacovlev's avatar Victor Yacovlev

Fixed #kumir2-1628

parent 877782a6
......@@ -1939,6 +1939,9 @@ void SyntaxAnalizer::parseVarDecl(int str)
st.statement->error = error;
}
else {
if (!st.statement) {
st.statement = AST::StatementPtr(new Statement);
}
st.statement->type = AST::StVarInitialize;
st.statement->variables = vars;
}
......
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