Warning: Too few arguments: ‘{next_arg}’ is required
The call leaves out a parameter that has no default and isn’t Output, so the callee
finds it undefined, and reading it raises <UNDEFINED> unless the callee tests $Data
first. IRIS compiles the call, as it does any call with fewer arguments than parameters.
Pass the argument, or give the parameter a default.
IRIS compiles the example, and do ##class(Demo.TooFewArguments).Call() raises <UNDEFINED> when it runs.
Class Demo.TooFewArguments
{
ClassMethod Greet(name As %String) As %String
{
Quit "Hello, " _ name
}
ClassMethod Call() As %String
{
Quit ..Greet() //! A6705
}
}