ascot diagnostics

A3119

Error: Member ‘{name}’ is defined twice

Two members of one kind share a name, such as two properties Name, or a method and a class method both named Run. A property and a method may share a name. IRIS refuses to load the class (Element name conflict). The second declaration is marked. Rename it, or merge the two.

IRIS rejects the example.

Class Demo.DuplicatedMemberName Extends %RegisteredObject
{

Property Name As %String;

Property Name As %String(MAXLEN = 100); //! A3119

}

All diagnostics