<unit name="ok_recursive_ancestor">
  <structure name="TMyClass" name_with_generic="TMyClass" type="class">
  </structure>
  <structure name="TMyClass" name_with_generic="TMyClass&lt;T&gt;" type="class">
    <description><abstract>Valid Pascal, FPC compiles this (just fix first TMyClass, e.g.</abstract><detailed> to not declare explicit ancestor). Generic and non-generic TMyClass are different types.</detailed></description>
  </structure>
  <structure name="TMyInterface" name_with_generic="TMyInterface" type="interface">
    <description><abstract>Invalid Pascal, such relation is not allowed, FPC correctly reports: Error: Forward declaration of class &quot;TMyInterface&quot; must be resolved here to use the class as ancestor</abstract></description>
  </structure>
  <structure name="TMyInterface" name_with_generic="TMyInterface&lt;T&gt;" type="interface">
    <description><abstract>Valid Pascal, FPC compiles this (just fix first TMyInterface, e.g.</abstract><detailed> to not declare explicit ancestor). Generic and non-generic TMyClass are different types.</detailed></description>
  </structure>
</unit>
