tb0091.pp 312 B

123456789101112131415161718192021
  1. { %FAIL }
  2. {$mode objfpc}
  3. type
  4. tc1 = class
  5. l : longint;
  6. property p : longint read l;
  7. end;
  8. tc2 = class(tc1)
  9. { in Delphi mode }
  10. { parameters can have the same name as properties }
  11. procedure p1(p : longint);
  12. end;
  13. procedure tc2.p1(p : longint);
  14. begin
  15. end;
  16. begin
  17. end.