[fpc-devel] property writer can not use baseclass
    Alexander Klenin 
    klenin at gmail.com
       
    Sun Oct 17 01:33:10 CEST 2010
    
    
  
On Sun, Oct 17, 2010 at 05:44, Martin <lazarus at mfriebe.de> wrote:
> class TBase
>  FBar: TObject;
> end;
>
> class TChild(TBase)
>  function GetBar: TChildObject; // does just a typecast
>
>  // provide a property Bar to avoid type-casts
>  property Bar: TChildObject
>    read GetBar
>    write FBar; // this doesn't work
> end;
Delphi compatibility?
-- 
Alexander S. Klenin
    
    
More information about the fpc-devel
mailing list