ascot diagnostics

A7604

Error: Label ‘{label}’ has no formal argument list, so $$ cannot call it (IRIS: <PARAMETER>)

$$Greet or $$Greet() calls the label Greet as a function, but Greet has no formal argument list. IRIS compiles the routine and raises <PARAMETER> when the call runs. Add a formal argument list to Greet, even an empty (), or call it with Do Greet without parentheses.

IRIS compiles the example, and do Main^Demo.Labels raises <PARAMETER> when it runs.

ROUTINE Demo.Labels
Greet
    Write "hi", !
    Quit
Main
    Write $$Greet() //! A7604
    Quit

All diagnostics