I have the following code that doesn't compile, and I can't find an explanation as to why.
TIndexArray<TType> = array of TType;
TIndexList<TArrayType; TType: TIndexArray<TArrayType>> = class
end;
It says the
Type 'TIndexArray' is not a valid constraint.
But if TIndexArray is a class and not an array type it works.
TTypein your class declaration. You can just useTIndexArray<TArrayType>directly in your class, or declareTType = TIndexArray<TArrayType>within the class.