ascot diagnostics

A3372

Warning: ‘{name}’ is not a parameter of {class}, the type of {of}{hint}

A type in a method’s or query’s signature, a As %String(MAXLEN = 50) or As %Integer(MINVAL = 0), may carry the type’s parameters, and this name is none of them. IRIS compiles the class: a signature’s type parameters are kept as documentation and neither checked nor applied, so a misspelling that a property would be refused for (A2357) passes unnoticed. Fix the spelling, or drop the parameter.

IRIS compiles the example.

Class Demo.UnrecognizedSignatureTypeParam Extends %RegisteredObject
{

Method Greet(name As %String(MAXLN = 50)) As %String //! A3372
{
    Return "Hello, " _ name
}

}

All diagnostics