Can somebody please tell me why I am getting the
Incompatible type: 'TChild' and 'Class of TChild'
TBase = class (TObject)
end;
TMyList<T: TBase> = class(TObjectList<T>)
end;
The error comes when I declare a child from the base class and try to create a list of TChild.
TChild = class (TBase)
end;
TChildList = TMyList<TChild>;