Warning: Argument ‘{name}’ has no default but follows one that has
Under {"allowRequiredAfterOptional":false}, this formal argument has no default and
follows one that has, as b does in M(a As %String = "", b As %String). A call that
passes only a leaves b undefined, so reading b raises <UNDEFINED>. Put the arguments
without a default first.
IRIS compiles the example. Checked with the style {"allowRequiredAfterOptional":false}.
Class Demo.RequiredAfterOptional
{
ClassMethod Greet(greeting As %String = "Hello", name As %String) As %String //! S6174
{
Return greeting _ ", " _ name
}
}