tb0259.pp 365 B

12345678910111213141516171819202122
  1. { Old file: tbs0302.pp }
  2. { inherited property generates wrong assembler OK 0.99.13 (PFV) }
  3. {$ifdef fpc}{$mode objfpc}{$endif}
  4. type
  5. c1=class
  6. Ffont : longint;
  7. property Font:longint read Ffont;
  8. end;
  9. c2=class(c1)
  10. function GetFont:longint;
  11. end;
  12. function c2.GetFont:longint;
  13. begin
  14. result:=Font;
  15. result:=inherited Font;
  16. end;
  17. begin
  18. end.