ascot diagnostics

A5579

Warning: Passing {actual} argument to ‘{name}’, which is {wanted} formal argument

This call passes an argument without a . to an Output formal argument, or with a . to one that is neither ByRef nor Output. Only the . in the call passes by reference, whatever ByRef, Output or a label’s & declares. IRIS compiles and runs either call. Add or drop the ., or declare the formal argument to match. A plain variable passed to a ByRef formal argument is A6204 instead.

IRIS compiles the example.

Class Demo.MismatchArgumentAndArgumentMode
{

ClassMethod Next(Output value As %Integer)
{
    Set value = 1
}

ClassMethod Call() As %Integer
{
    Set value = 0
    Do ..Next(value) //! A5579
    Quit value
}

}

All diagnostics