ascot diagnostics

A3942

Error: MultiDimensional property ‘{name}’ takes a subscript, not empty parentheses

..X() names a node of the MultiDimensional property X, but empty parentheses pick no node. IRIS compiles a read of ..X() and raises <OBJECT DISPATCH> (missing subscripts) when it runs. It refuses to compile Set ..X() = v with ERROR #1027. Write the subscripts of the node you mean, or ..X without parentheses for the property’s own value.

IRIS compiles the example, and do ##class(Demo.NodeWithoutSubscripts).%New().Call() raises <OBJECT DISPATCH> when it runs.

Class Demo.NodeWithoutSubscripts Extends %RegisteredObject
{

Property Cache As %String [ MultiDimensional ];

Method Call() As %String
{
    Quit ..Cache() //! A3942
}

}

All diagnostics