Warning: Passing {actual} argument to ‘{name}’, which is {wanted} formal argument
The argument and the parameter disagree on by-reference passing: a plain argument where
the parameter is Output, so the callee’s result never reaches the caller, or a dotted one
where the parameter is neither ByRef nor Output, so the callee’s assignments do without
the signature saying so. Only the caller’s . passes by reference; ByRef and Output
just declare the intent, so IRIS compiles and runs either way. Add or drop the ., or
correct the declaration. A plain variable where ByRef is declared is A6204, an
Information, since it is as often meant as not.
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
}
}