ascot diagnostics

A4269

Information: {role} ‘{name}’ is never read

The method overrides a superclass’s method and never reads this formal argument. The superclass’s method declares the formal argument, so callers pass it whether the override reads it or not. Removing it is A1841. IRIS compiles and runs the code. Nothing needs changing; the information only notes that the value goes unused.

IRIS compiles the example.

Class Demo.UnreadRequired Extends %Persistent
{

Method %OnBeforeSave(insert As %Boolean) As %Status //! A4269
{
    Set ^Demo("saved") = $Horolog
    Return $$$OK
}

}

All diagnostics