Building the following code causes
(E0) Internal error: Object reference not set to an instance of an object.
in Visual Studio 2015, RemObject Elements 9.1.99.2151
Notice the empty iterator.
namespace TestEmptyIterator;
interface
type
TestIterator = public class
private
method GetIntegers: sequence of Integer; iterator; empty;
protected
public
property Integers: sequence of Integer read GetIntegers;
end;
implementation
end.
The following compiles and works fine:
namespace TestEmptyIterator;
interface
type
TestIterator = public class
private
method GetIntegers: sequence of Integer; iterator;
protected
public
property Integers: sequence of Integer read GetIntegers;
end;
implementation
method TestIterator.GetIntegers: sequence of Integer;
begin
end;
end.