ascot diagnostics

A5523

Error: Too many arguments: the callee takes {takes}

The call passes more arguments than the callee declares, and the callee has no args... to take the rest. IRIS compiles the call and raises <PARAMETER> when it runs. The first argument beyond the declared ones is marked; drop the extra arguments, or declare the parameters they are meant for.

IRIS compiles the example, and do ##class(Demo.TooManyArguments).Call() raises <PARAMETER> when it runs.

Class Demo.TooManyArguments
{

ClassMethod Add(left As %Integer, right As %Integer) As %Integer
{
    Quit left + right
}

ClassMethod Call() As %Integer
{
    Quit ..Add(1, 2, 3) //! A5523
}

}

All diagnostics