You can work around it by declaring an ancestor class:
type
TBaseElement = class
end;
TMyCollection<T: TBaseElement> = class
end;
TMyElement = class(TBaseElement)
private
FParent: TMyCollection<TBaseElement>;
end;
More Related Contents:
- Why are TGeneric and TGeneric incompatible types?
- why two aliases to “array of string” treated differently?
- How to have Delphi TWebbrowser component running in IE9 mode?
- Profiler and Memory Analysis Tools for Delphi [closed]
- List of Delphi language features and version in which they were introduced/deprecated
- Delphi: Access Violation at the end of Create() constructor
- Split a string into an array of strings based on a delimiter
- Is Delphi “with” keyword a bad practice?
- How to change the implementation (detour) of an externally declared function
- “Left side cannot be assigned to” for record type properties in Delphi
- Replacing a component class in delphi
- Load Jpg/Gif/Bitmap and convert to Bitmap
- Google like edit/combo control for Delphi?
- Conversion between absolute and relative paths in Delphi
- Using 7-Zip from Delphi?
- Handling a Unicode String in Delphi Versions
- Using TRichEdit at runtime without defining a parent
- How to shell to another app and have it appear in a delphi form
- Using WebView (EdgeHTML) in Delphi / C++ Builder
- Delphi 2009: How to communicate between Windows service & desktop application under Vista?
- Delphi: How do you auto-update your applications? [closed]
- How do I declare an array when I don’t know the length until run time?
- How do I hash a string with Delphi?
- What is the compiler version for Delphi 2010?
- Delphi pre-build event not executing BEFORE compile
- How can I enable my 32-bit Delphi application to use 4gb of memory on 64-bit windows (via Wow64.exe)?
- Delphi 7: ADO, need basic coding example
- How to translate (internationalize, localize) application?
- Using TChromium, Delphi Chromium Embedded
- How to kill a thread in delphi?