ascot diagnostics

A1841

Warning: Method ‘{name}’ overrides {cls}’s {difference}

The method overrides one a superclass declares, but its formal arguments differ. It drops one, adds one without a default, or takes one differently (by value, ByRef, Output). IRIS compiles and runs the override. A caller that knows only the superclass passes the arguments the superclass declares. An argument the override does not declare is dropped, and one the caller does not pass is undefined. Keep the superclass’s formal arguments. A formal argument added with a default, or as Output, is fine.

IRIS compiles the example.

Class Demo.OverrideSignature Extends %Persistent
{

Method %OnBeforeSave() As %Status //! A1841
{
    Return $$$OK
}

}

All diagnostics