ascot diagnostics

A2733

Error: $CASE needs a case:value arm or a :default after its target

The $CASE has only its target, with no case:value pair to match it against and no :default. IRIS refuses to compile the $CASE (ERROR #1009: Expected comma). Add the case:value pairs, with a :default for the values they leave out.

IRIS rejects the example.

Class Demo.CaseWithoutArms
{

ClassMethod Name(size As %Integer) As %String
{
    Quit $CASE(size) //! A2733
}

}

All diagnostics