bug0302.pp 265 B

12345678910111213141516171819
  1. {$ifdef fpc}{$mode objfpc}{$endif}
  2. type
  3. c1=class
  4. Ffont : longint;
  5. property Font:longint read Ffont;
  6. end;
  7. c2=class(c1)
  8. function GetFont:longint;
  9. end;
  10. function c2.GetFont:longint;
  11. begin
  12. result:=Font;
  13. result:=inherited Font;
  14. end;
  15. begin
  16. end.