I'd like to create a nested class which is based on the type provided to the outer class. I need the inner class to extend T
by some members:
TOuterClass<T:class> = class
type
TNestedClass = class(T)
MoreData:Integer;
end;
end;
The compiler says "No" or more specifically [DCC Error] MyUnit.pas(20): E2021 Class type required at class(T)
.
Is it somehow possible to achieve what I am trying to do?