tb0096.pp 437 B

12345678910111213141516171819202122232425
  1. { %FAIL }
  2. { derived from source for Bug Report 1203 }
  3. { in FPC mode this shouldn't compile }
  4. {$mode objfpc}
  5. type
  6. someprocedureofobjectype=procedure (sender:tobject) OF OBJECT;
  7. a=class
  8. protected
  9. fondisplay : someprocedureofobjectype;
  10. public
  11. a:longint;
  12. end;
  13. b=class(A)
  14. protected
  15. fondisplay : someprocedureofobjectype;
  16. public
  17. a:longint;
  18. end;
  19. begin
  20. end.