bug0097.pp 413 B

123456789101112131415161718192021222324252627282930313233343536373839
  1. {
  2. This compiles fine with FPC, but not with Bp7 see 2 comments
  3. }
  4. type
  5. t=object
  6. s : string; { No ; needed ? }
  7. procedure p;
  8. end;
  9. t2=object(t)
  10. procedure p1(p : string);
  11. end;
  12. procedure t2.p1(p : string);
  13. begin
  14. end;
  15. procedure t.p;
  16. var
  17. s : longint; { Not allowed with BP7 }
  18. x : longint;
  19. procedure nested;
  20. var
  21. s : longint;
  22. begin
  23. end;
  24. begin
  25. end;
  26. begin
  27. end.