Commit 5cb26017 authored by Maxime Perrotin's avatar Maxime Perrotin
Browse files

Fix test of terminators in procedure

parent a35ecdf9
......@@ -3010,7 +3010,7 @@ def procedure_post(proc, content, parent=None, context=None):
errors.append(str(err))
# Id of fd_expr may have changed (enumerated, choice)
each.return_expr = check_expr.right
elif proc.return_type and not each.return_expr:
elif proc.return_type and each.kind == 'return' and not each.return_expr:
errors.append(['Missing return value in procedure {}'
.format(proc.inputString),
[0, 0], []])
......
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