Method return List of type
Good afternoon I am making a method of a class that I want to return a list of objects of another class that I have defined, example:
ClassMethod myMethod() As list of MyPackage.MyClass
But it gives me a syntax error, I try this and it works:
ClassMethod myMethod() As %ListOfObjects
But I would like to keep the typing.
Is there a way?