CompileErrors/A0022
A0022 - Unexpected RETURN at argument depth <depth>
Description
A0022 is issued when a RETURN statement is encountered within an argument stack. Normally this means that a prior command did not get enough arguments.
Example of Cause
Num# takes a single parameter, but a RETURN is found instead.
SomeSubroutine:
Num#
RETURN { A0022 - Unexpected RETURN at argument depth 2 }
Resolution
Ensure that all argument stacks are complete before the sub declaration.
SomeSubroutine:
Num#('100')
RETURN { No error }