ascot diagnostics

A4718

Warning: Cannot find member ‘{mem}’ in {cls}, an abstract class whose subclass here may have it{suggestions}

The value’s declared class is abstract, and neither it nor any superclass declares the member. The nearest declared names follow as suggestions. When the code runs, the value is an instance of some subclass, which may have the member. IRIS compiles the reference and raises <PROPERTY DOES NOT EXIST> or <METHOD DOES NOT EXIST> when that subclass lacks it. Declare the member on the abstract class, or declare the value as the subclass that has it.

IRIS compiles the example.

Class Demo.CannotFindMemberOnAbstract Extends %RegisteredObject [ Abstract ]
{

Method Area() As %Numeric [ Abstract ]
{
}

ClassMethod Describe(shape As Demo.CannotFindMemberOnAbstract) As %String
{
    Quit "Perimeter: " _ shape.Perimeter() //! A4718
}

}

All diagnostics