ascot diagnostics

A3372

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

A formal argument or return type of a method or class query carries a parameter the type class does not declare. The ( ... ) after the type may carry the type class’s parameters, as in name As %String(MAXLEN = 50). IRIS compiles the class and keeps the parameters but neither checks nor applies them, so a misspelling it refuses on a property (A2357) passes here. 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