Commit a1b1fd0c authored by Victor Yacovlev's avatar Victor Yacovlev

Fixed incorrect algorithm return value code generation

parent c200bcf7
......@@ -1612,6 +1612,7 @@ void SyntaxAnalizerPrivate::parseAlgHeader(int str, bool onlyName, bool allowOpe
alg->header.returnType.kind = bt;
if (lexer->isArrayClassName([1]->data)) {
alg->header.returnType.kind = AST::TypeNone;[1]->error = _("Algorhitms can't return array");
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