Bug #474
End is treated as Exit when inside a procedure!
Status:
Resolved
Priority:
High
Assignee:
-
Target version:
-
Start date:
09/10/2020
Due date:
% Done:
0%
Estimated time:
1:00 h
Affected version:
Description
This bug has been around for quite some time.
I reported it before but could not find it on aozmine, so I added it again.
Example:
Print "Done" End Procedure DO_Stuff Print "test" End Print "test2" End Proc``` Result: test Done The "Done" should never be seen, since execution should have stopped in the middle of the procedure.
Updated by Brian Flanagan over 2 years ago
Looking at the generated code, I see that End is incorrectly being translated as a return from the procedure!