Error: Property ‘{name}’ is not MultiDimensional, so it takes no subscripts
..X(subs) reads or sets a node of the property X, but only a MultiDimensional property
has nodes. IRIS compiles the code and raises <OBJECT DISPATCH> when it runs. A Set into
a node of a list Of or array Of property raises <PARAMETER> instead. Use
..X.GetAt(key) for a collection’s element, or declare the property [ MultiDimensional ]
so that it holds nodes.
IRIS compiles the example, and do ##class(Demo.NotMultidimensional).%New().Call() raises <OBJECT DISPATCH> when it runs.
Class Demo.NotMultidimensional Extends %RegisteredObject
{
Property Tags As list Of %String;
Method Call() As %String
{
Quit ..Tags(1) //! A8496
}
}