ascot diagnostics

A8997

Warning: Returns a ‘{actual}’ where no return type is declared

The method declares no return type, and this Quit or Return carries a value: a caller that asks for one gets it, but nothing in the signature says so. IRIS compiles and runs it. Declare the type with As, or drop the value.

IRIS compiles the example.

Class Demo.ReturnXForNothing
{

ClassMethod Log(message As %String)
{
    Write message, !
    Quit 1 //! A8997
}

}

All diagnostics