<html>
  <head>
    <meta http-equiv="content-type" content="text/html; charset=UTF-8">
  </head>
  <body text="#000000" bgcolor="#FFFFFF">
    <font face="monospace">Hi List.<br>
      <br>
      I think i have found a bug related to enumerators, overridden
      methods and forward declared classes.<br>
      <br>
      Please consider the code listed here:<br>
      <a class="moz-txt-link-freetext"
        href="http://pastebin.com/8EkVDG5n">http://pastebin.com/8EkVDG5n</a><br>
      <br>
      The problem seem to be that the a descendant enumerator class
      overriding a virtual method cannot<br>
      return a class which i only forward declared. <br>
      <br>
      If the TFoo and TBar classes are moved above the
      TBarListEnumerator the code compiles without<br>
      any problem.<br>
      <br>
      Should I add this to the bugtracker?<br>
      <br>
      Regards<br>
      Torsten Bonde Christiansen.<br>
      <br>
      ps. my compiler details:<br>
      <br>
      torsten@epidata:~$ ppcx64 -i<br>
      Free Pascal Compiler version 2.6.4<br>
      <br>
      Compiler Date      : 2014/03/12<br>
      Compiler CPU Target: x86_64<br>
      <br>
      <br>
    </font>
  </body>
</html>