[fpc-devel] Forward definitions of nested classes in outer scope

Jonas Maebe jonas.maebe at elis.ugent.be
Sat Mar 12 18:51:18 CET 2011


Hello,

Could someone check whether or not this compiles with Delphi 2009+ ?

****
type
  tforward = class;

  tc = class
   type
    tnest = class
    end;
  end;

  ty = class
    function f: tforward;
  end;

  tforward = tc.tnest;

begin
end.
***

Thanks,


Jonas



More information about the fpc-devel mailing list